fix: make merge multiple eu artifacts depend on call build for eu #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy with a hold state | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
call_build: | |
uses: ./.github/workflows/build_i18n.yml | |
with: | |
cloud_region: US | |
call_build_for_eu: | |
uses: ./.github/workflows/build_i18n.yml | |
with: | |
cloud_region: EU | |
merge_multiple_us_artifacts: | |
runs-on: ubuntu-latest | |
needs: call_build | |
steps: | |
- name: Merge into build-output-US Artifact | |
uses: actions/upload-artifact/merge@v4 | |
with: | |
name: build-output-US | |
pattern: build-output-US-* | |
merge-multiple: true | |
merge_multiple_eu_artifacts: | |
runs-on: ubuntu-latest | |
needs: call_build_for_eu | |
steps: | |
- name: Merge into build-output-EU Artifact | |
uses: actions/upload-artifact/merge@v4 | |
with: | |
name: build-output-EU | |
pattern: build-output-EU-* | |
merge-multiple: true | |
call_unit_test: | |
uses: ./.github/workflows/unit_test.yml | |
needs: | |
- merge_multiple_us_artifacts | |
- merge_multiple_eu_artifacts | |
call_misc_tests: | |
uses: ./.github/workflows/miscellaneous_tests.yml | |
call_acceptance: | |
uses: ./.github/workflows/acceptance.yml | |
needs: | |
- merge_multiple_us_artifacts | |
- merge_multiple_eu_artifacts | |
call_extract_versions: | |
uses: ./.github/workflows/extract_versions.yml | |
call_should_deploy_major_version: | |
uses: ./.github/workflows/should_deploy_major_version.yml | |
call_deploy_full_version: | |
needs: | |
- call_build_for_eu | |
- call_unit_test | |
- call_acceptance | |
- call_extract_versions | |
- call_misc_tests | |
uses: ./.github/workflows/deploy_hold.yml | |
with: | |
directory: ${{ github.ref_name }} | |
cache-control: 'max-age=31536000' | |
secrets: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }} | |
call_deploy_major_version: | |
needs: | |
- call_build_for_eu | |
- call_unit_test | |
- call_acceptance | |
- call_extract_versions | |
- call_misc_tests | |
- call_should_deploy_major_version | |
if: ${{ needs.call_should_deploy_major_version.outputs.should_deploy_major_version }} | |
uses: ./.github/workflows/deploy_hold.yml | |
with: | |
directory: ${{ needs.call_extract_versions.outputs.major_version }} | |
cache-control: 'max-age=43200' | |
secrets: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }} | |
call_deploy_minor_version: | |
needs: | |
- call_build_for_eu | |
- call_unit_test | |
- call_acceptance | |
- call_extract_versions | |
- call_misc_tests | |
uses: ./.github/workflows/deploy_hold.yml | |
with: | |
directory: ${{ needs.call_extract_versions.outputs.minor_version }} | |
cache-control: 'max-age=43200' | |
secrets: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }} | |
concurrency: | |
group: ci-build-and-deploy-hold-${{ github.ref }}-1 | |
cancel-in-progress: true |