Skip to content

Commit

Permalink
ci: Skip build steps completely on releases
Browse files Browse the repository at this point in the history
No point in running these steps if we are not pushing anyway. The
release workflow will take care.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information
jan-kiszka committed Feb 27, 2024
1 parent fb97052 commit 5d56743
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,20 @@ jobs:
deploy-token: ${{ secrets.PACKAGE_DEPLOY_TOKEN }}
- name: Build kas image
uses: docker/build-push-action@v5
if: ${{ env.PUSH_MASTER }}
with:
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
push: ${{ env.PUSH_MASTER }}
push: true
tags: ghcr.io/siemens/kas/kas
- name: Build kas-isar image
uses: docker/build-push-action@v5
if: ${{ env.PUSH_MASTER }}
with:
cache-from: type=gha
cache-to: type=gha,mode=max
target: kas-isar
platforms: linux/amd64,linux/arm64
push: ${{ env.PUSH_MASTER }}
push: true
tags: ghcr.io/siemens/kas/kas-isar

0 comments on commit 5d56743

Please sign in to comment.