Skip to content

Commit

Permalink
Support deploys to prod
Browse files Browse the repository at this point in the history
Toward #755.
  • Loading branch information
waldoj committed Dec 3, 2021
1 parent 960a7c2 commit c7a84ca
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Deploy
name: Deploy Process

on:
push:
branches:
- master
- deploy
pull_request:
branches:
- master
- deploy

jobs:
build:
Expand Down Expand Up @@ -61,10 +63,19 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: us-east-1
- name: Create CodeDeploy Deployment
- name: Staging CodeDeploy Deployment
if: ${{ github.head_ref == 'master' }}
run: |
aws deploy create-deployment \
--application-name RS-Web \
--deployment-group-name RS-Web-Staging \
--deployment-config-name CodeDeployDefault.OneAtATime \
--github-location repository=${{ github.repository }},commitId=${{ github.sha }}
- name: Production CodeDeploy Deployment
if: ${{ github.head_ref == 'deploy' }}
run: |
aws deploy create-deployment \
--application-name RS-Web \
--deployment-group-name RS-Web-Fleet \
--deployment-config-name CodeDeployDefault.OneAtATime \
--github-location repository=${{ github.repository }},commitId=${{ github.sha }}

0 comments on commit c7a84ca

Please sign in to comment.