Skip to content

Commit

Permalink
Only backup after apply
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Jan 5, 2024
1 parent d2efc01 commit 78af5d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- run: terraform apply tfplan
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
- name: Backup state
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.B2_TFBACKUP_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.B2_TFBACKUP_SECRET_KEY }}
Expand Down

0 comments on commit 78af5d8

Please sign in to comment.