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 }}