Skip to content

Commit a8984b2

Browse files
Merge pull request propeller-heads#387 from propeller-heads/INFRA-171-cicd-tycho-integration-tests
feat: INFRA-171- -ci/cd for run tycho-integration tests at dev/prod env
2 parents d03ed8e + c1e8b2a commit a8984b2

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

.github/workflows/build-and-push-integration-test.yaml renamed to .github/workflows/build-push-deploy-integration-test.yaml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Push Integration Test
1+
name: Build, Push and Deploy Integration Test
22

33
on:
44
workflow_dispatch:
@@ -88,4 +88,34 @@ jobs:
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 }}

.github/workflows/v2-main-workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)