From 87dde6a5deee57f102a2aa5baf151ef0ff01b297 Mon Sep 17 00:00:00 2001 From: ted-cdw Date: Thu, 23 Feb 2023 14:39:21 -0500 Subject: [PATCH] Use workflow version from lab --- .github/workflows/flaskr-ci.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 }}"