From 83faa81cef0b48960e4e2c42e0a8befb6b750cfc Mon Sep 17 00:00:00 2001 From: hamiltonrossbjss <58223267+hamiltonrossbjss@users.noreply.github.com> Date: Tue, 2 Jan 2024 14:50:50 +0000 Subject: [PATCH] Hard coding branch for higher non-prod environments (#1340) * Hard coding branch for higher non-prod environments * Adding Preprod and Prod * Missing AWS Admin role --- .github/workflows/deploy-develop.yml | 2 +- .github/workflows/deploy-preprod.yml | 17 +++++++++++++++++ .github/workflows/deploy-prod.yml | 17 +++++++++++++++++ .github/workflows/deploy.yml | 2 ++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy-preprod.yml create mode 100644 .github/workflows/deploy-prod.yml diff --git a/.github/workflows/deploy-develop.yml b/.github/workflows/deploy-develop.yml index f26697d027..46131b3118 100644 --- a/.github/workflows/deploy-develop.yml +++ b/.github/workflows/deploy-develop.yml @@ -11,7 +11,7 @@ jobs: vtm-app: uses: ./.github/workflows/deploy.yml with: - branch: ${{ github.ref_name }} + branch: 'develop' environment: 'develop' bucket: '.develop' secrets: diff --git a/.github/workflows/deploy-preprod.yml b/.github/workflows/deploy-preprod.yml new file mode 100644 index 0000000000..d42f9d6658 --- /dev/null +++ b/.github/workflows/deploy-preprod.yml @@ -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 }} diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml new file mode 100644 index 0000000000..d49e2f6e1a --- /dev/null +++ b/.github/workflows/deploy-prod.yml @@ -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 }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ed94563a08..da6a4f164d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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