Skip to content

Commit

Permalink
Hard coding branch for higher non-prod environments (#1340)
Browse files Browse the repository at this point in the history
* Hard coding branch for higher non-prod environments

* Adding Preprod and Prod

* Missing AWS Admin role
  • Loading branch information
hamiltonrossbjss authored Jan 2, 2024
1 parent 03dcd46 commit 83faa81
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
vtm-app:
uses: ./.github/workflows/deploy.yml
with:
branch: ${{ github.ref_name }}
branch: 'develop'
environment: 'develop'
bucket: '.develop'
secrets:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/deploy-preprod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build and Deploy VTM App to PreProd
run-name: "${{ github.actor }} - ${{ github.ref_name }} - ${{ github.run_id }} 🚀"

on:
workflow_dispatch:

jobs:
vtm-app:
uses: ./.github/workflows/deploy.yml
with:
branch: ${{ github.ref_name }}
environment: 'preprod'
bucket: '.preprod'
secrets:
AWS_MGMT_ROLE: ${{ secrets.AWS_MGMT_ROLE }}
AWS_ADMIN_ROLE: ${{ secrets.AWS_PROD_ROLE }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build and Deploy VTM App to Prod
run-name: "${{ github.actor }} - ${{ github.ref_name }} - ${{ github.run_id }} 🚀"

on:
workflow_dispatch:

jobs:
vtm-app:
uses: ./.github/workflows/deploy.yml
with:
branch: 'master'
environment: 'prod'
bucket: '.prod'
secrets:
AWS_MGMT_ROLE: ${{ secrets.AWS_MGMT_ROLE }}
AWS_ADMIN_ROLE: ${{ secrets.AWS_PROD_ROLE }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ inputs.branch }}

- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down

0 comments on commit 83faa81

Please sign in to comment.