Skip to content

Commit

Permalink
[CHORE] fix github actions workflow trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
ohksj77 committed Mar 16, 2024
1 parent 349f0c7 commit a45a4e6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/backend-cd.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: TWTW Backend CD
on:
push:
branches:
- master
paths:
- '.github/workflows/backend-cd.yml'
workflow_run:
branches:
- "master"
Expand Down Expand Up @@ -39,10 +44,14 @@ jobs:
terraform_version: 1.0.0

- name: Terraform Init
run: terraform init
run: |
cd ./terraform
terraform init
- name: Terraform Apply
run: terraform apply -auto-approve
run: |
cd ./terraform
terraform apply -auto-approve
- name: Get EC2 instance IP
id: get_ec2_ip
Expand Down

0 comments on commit a45a4e6

Please sign in to comment.