Skip to content

Commit 10ddff7

Browse files
committed
[NRL-1473] Build artifacts before TF destroy of PR envs
1 parent 404c175 commit 10ddff7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pr-env-destroy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ run-name: "Destroy PR Environment - #${{ github.event.pull_request.number }} (${
44
on:
55
pull_request:
66
types: [closed]
7+
workflow_dispatch:
78

89
concurrency:
910
group: environment-${{ github.event.pull_request.number }}
@@ -73,9 +74,11 @@ jobs:
7374
- name: Terraform Init
7475
run: |
7576
terraform -chdir=terraform/infrastructure init
76-
terraform -chdir=terraform/infrastructure workspace new ${{ needs.set-environment-id.outputs.environment_id }} || \
7777
terraform -chdir=terraform/infrastructure workspace select ${{ needs.set-environment-id.outputs.environment_id }}
7878
79+
- name: Build artifacts
80+
run: cd terraform/infrastructure && make build-artifacts
81+
7982
- name: Terraform Destroy
8083
run: |
8184
terraform -chdir=terraform/infrastructure destroy \

0 commit comments

Comments
 (0)