Skip to content

Commit 95a237f

Browse files
committed
add destory
1 parent c24fdf2 commit 95a237f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/terraform_apply.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: 'Terraform apply'
22

33
on:
4-
push:
5-
branches: [ "main" ]
64
schedule:
75
- cron: "0 4 * * 1-5" # UTC standard -> KRT = UTC + 9, KRT 13:00 = 04:00 + 9
86

.github/workflows/terraform_destroy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: 'Terraform destroy'
22

33
on:
4+
push:
5+
branches: [ "main" ]
46
schedule:
57
- cron: "0 15 * * 1-5" # UTC standard -> KRT = UTC + 9, KRT 13:00 = 04:00 + 9
68

@@ -44,7 +46,11 @@ jobs:
4446
4547
# Create google cloud service account credential.json file
4648
- name: Configure GCP service account credentials
47-
run: echo "${{ secrets.GCP_SERVICE_ACCOUNT_JSON_VALUE }}" > credentials.json
49+
id: create-json
50+
uses: jsdaniell/[email protected]
51+
with:
52+
name: "credentials.json"
53+
json: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON_VALUE }}
4854

4955
# destroy GCP instance
5056
- name: destory GCP Compute Engine

0 commit comments

Comments
 (0)