Skip to content

Commit

Permalink
fix: only build images if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
koenmetsu authored Oct 11, 2023
1 parent 0260a99 commit 037a67c
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ jobs:
build-api:
name: Build api
uses: ./.github/workflows/build-image.yml
if: github.repository_owner == 'Informatievlaanderen'
if: github.repository_owner == 'Informatievlaanderen' && needs.release.outputs.version != 'none'

needs: [ test, set-release-version ]
with:
build-target: Containerize_Api
Expand All @@ -176,7 +177,7 @@ jobs:
build-agentschapzorgengezondheidftpdump:
name: Build batch-agentschapzorgengezondheidftpdump
uses: ./.github/workflows/build-image.yml
if: github.repository_owner == 'Informatievlaanderen'
if: github.repository_owner == 'Informatievlaanderen' && needs.release.outputs.version != 'none'
needs: [ test, set-release-version ]
with:
build-target: Containerize_AgentschapZorgEnGezondheid
Expand All @@ -188,7 +189,7 @@ jobs:
build-vlaanderenbe:
name: Build batch-vlaanderenbe
uses: ./.github/workflows/build-image.yml
if: github.repository_owner == 'Informatievlaanderen'
if: github.repository_owner == 'Informatievlaanderen' && needs.release.outputs.version != 'none'
needs: [ test, set-release-version ]
with:
build-target: Containerize_VlaanderenBeNotifier
Expand All @@ -200,7 +201,7 @@ jobs:
build-projections-elasticsearch:
name: Build elasticsearch projections
uses: ./.github/workflows/build-image.yml
if: github.repository_owner == 'Informatievlaanderen'
if: github.repository_owner == 'Informatievlaanderen' && needs.release.outputs.version != 'none'
needs: [ test, set-release-version ]
with:
build-target: Containerize_ElasticSearch
Expand All @@ -212,7 +213,7 @@ jobs:
build-projections-delegations:
name: Build delegations
uses: ./.github/workflows/build-image.yml
if: github.repository_owner == 'Informatievlaanderen'
if: github.repository_owner == 'Informatievlaanderen' && needs.release.outputs.version != 'none'
needs: [ test, set-release-version ]
with:
build-target: Containerize_Delegations
Expand All @@ -224,7 +225,7 @@ jobs:
build-projections-reporting:
name: Build reporting
uses: ./.github/workflows/build-image.yml
if: github.repository_owner == 'Informatievlaanderen'
if: github.repository_owner == 'Informatievlaanderen' && needs.release.outputs.version != 'none'
needs: [ test, set-release-version ]
with:
build-target: Containerize_Reporting
Expand All @@ -248,7 +249,7 @@ jobs:
build-rebuilder:
name: Build rebuilder
uses: ./.github/workflows/build-image.yml
if: github.repository_owner == 'Informatievlaanderen'
if: github.repository_owner == 'Informatievlaanderen' && needs.release.outputs.version != 'none'
needs: [ test, set-release-version ]
with:
build-target: Containerize_Rebuilder
Expand All @@ -260,7 +261,7 @@ jobs:
build-ui:
name: Build site
uses: ./.github/workflows/build-image.yml
if: github.repository_owner == 'Informatievlaanderen'
if: github.repository_owner == 'Informatievlaanderen' && needs.release.outputs.version != 'none'
needs: [ set-release-version ]
with:
build-target: Containerize_Site
Expand All @@ -272,7 +273,7 @@ jobs:
build-acm-idm:
name: Build acm idm
uses: ./.github/workflows/build-image.yml
if: github.repository_owner == 'Informatievlaanderen'
if: github.repository_owner == 'Informatievlaanderen' && needs.release.outputs.version != 'none'
needs: [ set-release-version ]
with:
build-target: Containerize_AcmIdm
Expand All @@ -282,7 +283,7 @@ jobs:
secrets: inherit

release:
if: github.repository_owner == 'Informatievlaanderen'
if: github.repository_owner == 'Informatievlaanderen' && needs.release.outputs.version != 'none'
name: Release
runs-on: ubuntu-latest
needs:
Expand Down

0 comments on commit 037a67c

Please sign in to comment.