Skip to content

Commit

Permalink
Reverting back to run number
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Truong committed Sep 14, 2021
1 parent 24515a5 commit 606e7e7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Deploy Dev

on: pull_request
on:
push:
branches: [main]

env:
TF_VERSION: 0.14.7
Expand Down Expand Up @@ -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/
Expand All @@ -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 }}
Expand Down

0 comments on commit 606e7e7

Please sign in to comment.