Skip to content

need to build image on latest Dockerfile before running tests #30

need to build image on latest Dockerfile before running tests

need to build image on latest Dockerfile before running tests #30

Workflow file for this run

name: Run deenurp tests on deenurp image
on: push
jobs:
push_to_registry:
environment: docker_build
runs-on: ubuntu-latest
steps:
-
name: Set env
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: |
ghcr.io/fhcrc/deenurp:${{ env.sha_short }}
test:
runs-on: ubuntu-latest
container:
image: ghcr.io/fhcrc/deenurp:${{ env.sha_short }}

Check failure on line 33 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Run deenurp tests on deenurp image

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 33, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.sha_short
steps:
- uses: actions/checkout@v3
- run: |
python3 -m deenurp.test
tests/run.sh