-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.31 KB
/
thirteen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Trigger Thirteen AWS CodePipeline
on:
push:
branches:
- 'dev'
- 'preprod'
- 'main'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Trigger Thirteen DEV AWS CodePipeline
uses: zulhfreelancer/[email protected]
if: github.ref == 'refs/heads/dev'
with:
aws-region: "us-east-1"
aws-access-key: ${{ secrets.DEV_AWS_CODEPIPELINE_ACCESS_KEY }}
aws-secret-key: ${{ secrets.DEV_AWS_CODEPIPELINE_SECRET_KEY }}
pipeline-name: "thirteen"
- name: Trigger Thirteen PREPROD AWS CodePipeline
uses: zulhfreelancer/[email protected]
if: github.ref == 'refs/heads/preprod'
with:
aws-region: "us-east-1"
aws-access-key: ${{ secrets.PREPROD_AWS_CODEPIPELINE_ACCESS_KEY }}
aws-secret-key: ${{ secrets.PREPROD_AWS_CODEPIPELINE_SECRET_KEY }}
pipeline-name: "thirteen"
- name: Trigger Thirteen PROD AWS CodePipeline
uses: zulhfreelancer/[email protected]
if: github.ref == 'refs/heads/main'
with:
aws-region: "us-east-1"
aws-access-key: ${{ secrets.PROD_AWS_CODEPIPELINE_ACCESS_KEY }}
aws-secret-key: ${{ secrets.PROD_AWS_CODEPIPELINE_SECRET_KEY }}
pipeline-name: "thirteen"