Workflow file for this run
This file contains hidden or 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
name: Deploy Stateful Resources to PROD | |
run-name: Deploy stateful resources to AWS PROD by @${{ github.actor }} | |
on: | |
workflow_dispatch: | |
paths: | |
- "cloudformation/stateful.yml" | |
- "stateful.sh" | |
jobs: | |
deploy-dev: | |
runs-on: ubuntu-latest | |
environment: "AWS DEV" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: aws-actions/setup-sam@v2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- run: ./stateful.sh | |
deploy-prod: | |
runs-on: ubuntu-latest | |
needs: | |
- deploy-dev | |
environment: "AWS PROD" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: aws-actions/setup-sam@v2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- run: ./stateful.sh |