diff --git a/.github/workflows/flaskr-ci.yaml b/.github/workflows/flaskr-ci.yaml index 3f7bcc1f..4c8c4ba0 100644 --- a/.github/workflows/flaskr-ci.yaml +++ b/.github/workflows/flaskr-ci.yaml @@ -33,7 +33,7 @@ jobs: run: | cd examples/tutorial pytest - # Build Docker image in a separate job so that it's not taited by cached python build/test files + # Build Docker image in a separate job so that it's not taited by cached build/test files build-image: needs: tests permissions: @@ -44,7 +44,9 @@ jobs: - uses: actions/checkout@v3 - name: Set job vars id: vars - run: echo "sha_short=${GITHUB_SHA:0:10}" >> $GITHUB_OUTPUT + run: | + echo "SHA_SHORT=${GITHUB_SHA:0:10}" >> ${GITHUB_ENV} + echo "REPO_LOWER_CASE=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV} - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: @@ -56,4 +58,4 @@ jobs: with: context: examples/tutorial push: true - tags: "ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.sha_short }}" + tags: "ghcr.io/${{ env.REPO_LOWER_CASE }}:${{ env.SHA_SHORT }}"