-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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" |