Use workflow version from lab

This commit is contained in:
ted-cdw 2023-02-23 14:39:21 -05:00
parent 8cdc15ceaf
commit 87dde6a5de

View file

@ -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 }}"