Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): Secrets unavailable to Docker publish jobs #4220

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading