From 606e7e7d133f3a64f558c3ae6991bde25ba56d3c Mon Sep 17 00:00:00 2001 From: Daniel Truong Date: Tue, 14 Sep 2021 12:56:29 -0700 Subject: [PATCH] Reverting back to run number --- .github/workflows/deploy-dev.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-dev.yaml b/.github/workflows/deploy-dev.yaml index 64abb898..3184441b 100644 --- a/.github/workflows/deploy-dev.yaml +++ b/.github/workflows/deploy-dev.yaml @@ -1,6 +1,8 @@ name: Deploy Dev -on: pull_request +on: + push: + branches: [main] env: TF_VERSION: 0.14.7 @@ -101,11 +103,11 @@ jobs: for d in */ ; do cd $d && zip -r ../../artifacts/${d::-1}.zip ./ && cd .. done - + - name: Upload zips to S3 env: s3_bucket: "${{ env.S3_BUCKET }}-${{ env.TARGET_ENV }}" - dir_name: ${{ github.event.pull_request.number }} + dir_name: ${{ github.run_number }} run: | aws s3 sync ./artifacts s3://$s3_bucket/$dir_name/ @@ -125,7 +127,7 @@ jobs: - name: Terragrunt Apply working-directory: ${{ env.TG_SRC_PATH }}/${{ env.TFC_WORKSPACE }} env: - app_version: ${{ github.event.pull_request.number }} + app_version: ${{ github.run_number }} s3_bucket: ${{ env.S3_BUCKET }} db_name: ${{ env.DB_NAME }} gc_notify_api_path: ${{ env.GC_NOTIFY_API_PATH }}