Skip to content

Commit

Permalink
Managed by Terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
pineros committed Oct 26, 2023
1 parent f36edb5 commit a7f25dd
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/nycarts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Trigger NYC-Arts AWS CodePipeline

on:
push:
branches:
- 'dev'
- 'preprod'
- 'main'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Trigger NYC-Arts 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: "nycarts"
- name: Trigger NYC-Arts 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: "nycarts"
- name: Trigger NYC-Arts 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: "nycarts"

0 comments on commit a7f25dd

Please sign in to comment.