File tree Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 1- name : Build and Push Integration Test
1+ name : Build, Push and Deploy Integration Test
22
33on :
44 workflow_dispatch :
8888 role_to_assume : ${{ secrets.role_to_assume }}
8989 aws_region : ${{ secrets.aws_region }}
9090 repository_url : ${{ secrets.repository_url }}
91- domain_owner : ${{ secrets.domain_owner }}
91+ domain_owner : ${{ secrets.domain_owner }}
92+
93+ deploy-dev :
94+ needs :
95+ - build-and-push-integration-test
96+ if : ${{ github.event_name != 'workflow_dispatch' }}
97+ uses : propeller-heads/ci-cd-templates/.github/workflows/promote-to-dev.yaml@main
98+ permissions :
99+ id-token : write
100+ contents : read
101+ with :
102+ image_name : tycho-integration-test
103+ image_tag : ${{ needs.generate-tag.outputs.image_tag }}
104+ secrets :
105+ app_id : ${{ secrets.APP_ID }}
106+ app_private_key : ${{ secrets.APP_PRIVATE_KEY }}
107+
108+ deploy-prod :
109+ needs :
110+ - build-and-push-integration-test
111+ if : ${{ github.event_name == 'workflow_dispatch' }}
112+ uses : propeller-heads/ci-cd-templates/.github/workflows/promote-to-production.yaml@main
113+ permissions :
114+ id-token : write
115+ contents : read
116+ with :
117+ image_name : tycho-integration-test
118+ image_tag : ${{ needs.generate-tag.outputs.image_tag }}
119+ secrets :
120+ app_id : ${{ secrets.APP_ID }}
121+ app_private_key : ${{ secrets.APP_PRIVATE_KEY }}
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ jobs:
4141 app_id : ${{ secrets.APP_ID }}
4242 app_private_key : ${{ secrets.APP_PRIVATE_KEY }}
4343
44- build-and- push-integration-test :
44+ build-push-deploy -integration-test :
4545 needs :
4646 - release
47- uses : ./.github/workflows/build-and- push-integration-test.yaml
47+ uses : ./.github/workflows/build-push-deploy -integration-test.yaml
4848 with :
4949 base_tag : ${{ needs.release.outputs.next_release_version }}
5050 secrets :
You can’t perform that action at this time.
0 commit comments