Use workflow version from lab
This commit is contained in:
parent
8cdc15ceaf
commit
87dde6a5de
1 changed files with 5 additions and 3 deletions
8
.github/workflows/flaskr-ci.yaml
vendored
8
.github/workflows/flaskr-ci.yaml
vendored
|
|
@ -33,7 +33,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd examples/tutorial
|
cd examples/tutorial
|
||||||
pytest
|
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:
|
build-image:
|
||||||
needs: tests
|
needs: tests
|
||||||
permissions:
|
permissions:
|
||||||
|
|
@ -44,7 +44,9 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set job vars
|
- name: Set job vars
|
||||||
id: 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
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -56,4 +58,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: examples/tutorial
|
context: examples/tutorial
|
||||||
push: true
|
push: true
|
||||||
tags: "ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.sha_short }}"
|
tags: "ghcr.io/${{ env.REPO_LOWER_CASE }}:${{ env.SHA_SHORT }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue