From c8ff90305854344eb8ec38c0a4c35fc0d32831e3 Mon Sep 17 00:00:00 2001 From: Taylor Halfyard Date: Tue, 5 Dec 2023 16:42:59 +0000 Subject: [PATCH] Added in bucket input variable --- .github/workflows/deploy-VTMDev-1.yml | 3 ++- .github/workflows/deploy.yml | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-VTMDev-1.yml b/.github/workflows/deploy-VTMDev-1.yml index e0361c953..c44d25e17 100644 --- a/.github/workflows/deploy-VTMDev-1.yml +++ b/.github/workflows/deploy-VTMDev-1.yml @@ -9,7 +9,8 @@ jobs: uses: ./.github/workflows/deploy.yml with: branch: ${{ github.ref_name }} - environment: 'vtmdev-1.develop' + environment: 'vtmdev-1' + bucket: '-vtmdev-1.develop' secrets: AWS_MGMT_ROLE: ${{ secrets.AWS_MGMT_ROLE }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 54fac3199..92283c798 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,9 @@ on: branch: type: string required: true + bucket: + type: string + required: true secrets: AWS_MGMT_ROLE: required: true @@ -104,5 +107,5 @@ jobs: - name: Deploy App to S3 working-directory: cvs-app-vtm/dist/ - run: aws s3 sync . s3://vtm-${{ inputs.environment }}.${{ env.CVS_APP_VTM_GHA_DOMAIN }} + run: aws s3 sync . s3://vtm${{ inputs.bucket }}.${{ env.CVS_APP_VTM_GHA_DOMAIN }}