From 9a4031448c1cb63b3fc38d8624eea2edfa9f1e03 Mon Sep 17 00:00:00 2001 From: pineros <61841991+pineros@users.noreply.github.com> Date: Fri, 14 Jul 2023 10:00:46 -0400 Subject: [PATCH] Managed by Terraform --- .github/workflows/thirteen.yml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/thirteen.yml diff --git a/.github/workflows/thirteen.yml b/.github/workflows/thirteen.yml new file mode 100644 index 0000000..34d48a1 --- /dev/null +++ b/.github/workflows/thirteen.yml @@ -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/aws-codepipeline-action@v1.0.7 + 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/aws-codepipeline-action@v1.0.7 + 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/aws-codepipeline-action@v1.0.7 + 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" \ No newline at end of file