Skip to content

Commit

Permalink
Revert and format
Browse files Browse the repository at this point in the history
  • Loading branch information
isms committed Nov 22, 2023
1 parent 73bd09e commit d42c3b3
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: build

on:
push:
branches: [ main ]
paths: [ "runtime/**", ".github/workflows/build-containers.yml" ]
branches: [main]
paths: ["runtime/**", ".github/workflows/build-containers.yml"]
pull_request:
paths: [ "runtime/**", ".github/workflows/build-containers.yml" ]
paths: ["runtime/**", ".github/workflows/build-containers.yml"]
workflow_dispatch:

permissions:
Expand All @@ -26,21 +26,7 @@ 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
- name: Log into Azure
if: ${{ github.ref == 'refs/heads/main' && env.PUBLISH_IMAGE == '1' }}
uses: azure/login@v1
with:
Expand All @@ -56,7 +42,21 @@ 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: |
docker push $LOGIN_SERVER/$IMAGE --all-tags
docker push $LOGIN_SERVER/$IMAGE --all-tags

0 comments on commit d42c3b3

Please sign in to comment.