Skip to content

Commit

Permalink
fix(ci): Secrets unavailable to Docker publish jobs (#4220)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 authored Jun 25, 2024
1 parent 128a12a commit 30ba49d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/platform-docker-build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,25 @@ jobs:
needs: [docker-build-api, docker-build-private-cloud-api, docker-build-e2e]
uses: ./.github/workflows/.reusable-docker-e2e-tests.yml
with:
api-image: ${{ matrix.api-image }}
e2e-image: ${{ needs.docker-build-e2e.outputs.image }}
api-image: ${{ matrix.api-image }}
concurrency: ${{ matrix.args.concurrency }}
tests: ${{ matrix.args.tests }}

strategy:
matrix:
api-image:
- ${{ needs.docker-build-api.outputs.image }}
- ${{ needs.docker-build-private-cloud-api.outputs.image }}
args:
- tests: segment-part-1 environment
concurrency: 1
- tests: segment-part-2
concurrency: 1
- tests: segment-part-3 signup flag invite project
concurrency: 2
- tests: versioning
concurrency: 1

docker-publish-api:
needs: [docker-build-api, run-e2e-tests]
Expand All @@ -78,6 +89,7 @@ jobs:
with:
source-images: ${{ needs.docker-build-api.outputs.image }}
target-images: flagsmith/flagsmith-api
secrets: inherit

docker-publish-frontend:
needs: [docker-build-frontend, run-e2e-tests]
Expand All @@ -86,6 +98,7 @@ jobs:
with:
source-images: ${{ needs.docker-build-frontend.outputs.image }}
target-images: flagsmith/flagsmith-frontend
secrets: inherit

docker-publish-unified:
needs: [docker-build-unified, run-e2e-tests]
Expand All @@ -94,6 +107,7 @@ jobs:
with:
source-images: ${{ needs.docker-build-unified.outputs.image }}
target-images: flagsmith/flagsmith
secrets: inherit

docker-publish-private-cloud-api:
needs: [docker-build-private-cloud-api, run-e2e-tests]
Expand All @@ -102,6 +116,7 @@ jobs:
with:
source-images: ${{ needs.docker-build-private-cloud-api.outputs.image }}
target-images: flagsmith/flagsmith-private-cloud-api
secrets: inherit

docker-publish-private-cloud:
needs: [docker-build-private-cloud, run-e2e-tests]
Expand All @@ -110,6 +125,7 @@ jobs:
with:
source-images: ${{ needs.docker-build-private-cloud.outputs.image }}
target-images: flagsmith/flagsmith-private-cloud
secrets: inherit

update-charts:
needs: [docker-publish-api, docker-publish-frontend, docker-publish-unified]
Expand Down

0 comments on commit 30ba49d

Please sign in to comment.