Skip to content

Commit

Permalink
Move ACR steps down
Browse files Browse the repository at this point in the history
  • Loading branch information
isms committed Nov 22, 2023
1 parent d42c3b3 commit 1886afd
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Build Image
run: |
docker build runtime \
--tag $LOGIN_SERVER/$IMAGE:$SHA_TAG \
--tag $LOGIN_SERVER/$IMAGE:$LATEST_TAG
- name: Check image size
run: |
docker image list $LOGIN_SERVER/$IMAGE
- name: Tests packages in container
run: |
docker run $LOGIN_SERVER/$IMAGE:$SHA_TAG pytest tests/test_packages.py
- name: Log into Azure
if: ${{ github.ref == 'refs/heads/main' && env.PUBLISH_IMAGE == '1' }}
uses: azure/login@v1
Expand All @@ -42,20 +56,6 @@ jobs:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Build Image
run: |
docker build runtime \
--tag $LOGIN_SERVER/$IMAGE:$SHA_TAG \
--tag $LOGIN_SERVER/$IMAGE:$LATEST_TAG
- name: Check image size
run: |
docker image list $LOGIN_SERVER/$IMAGE
- name: Tests packages in container
run: |
docker run $LOGIN_SERVER/$IMAGE:$SHA_TAG pytest tests/test_packages.py
- name: Push image to ACR
if: ${{ github.ref == 'refs/heads/main' && env.PUBLISH_IMAGE == '1' }}
run: |
Expand Down

0 comments on commit 1886afd

Please sign in to comment.