Skip to content

Commit

Permalink
Fix CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
filipopo committed Dec 14, 2024
1 parent c8207fc commit 3fe4180
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Terraform
uses: hashicorp/setup-terraform@v3

- name: Set up CDK for Terraform
run: npm install -g cdktf-cli
run: |
pip install --user pipenv
npm install -g cdktf-cli
- name: cdktf synth
run: cdktf synth
run: |
pipenv install
cdktf synth
working-directory: cdktf

- name: Set up Terraform
uses: hashicorp/setup-terraform@v3

- name: Make Terraform plan
run: |
terraform init
Expand Down Expand Up @@ -71,6 +75,6 @@ jobs:

- name: Deploy
run: |
ls -lh
terraform -chdir=cdktf.out/stacks/urlshortener-stack apply tfplan
sh swa.sh ${{ github.event.inputs.image_tag }}
working-directory: cdktf

0 comments on commit 3fe4180

Please sign in to comment.