Skip to content

Commit aa2420d

Browse files
committed
fixup
1 parent d118102 commit aa2420d

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ jobs:
4848
tg_dir: ${{ env.working_dir }}
4949
tg_command: apply
5050

51-
- name: Terragrunt Output
52-
uses: gruntwork-io/terragrunt-action@v3
53-
id: terragrunt_output
54-
env:
55-
TG_TF_FORWARD_STDOUT: 1
56-
TG_NO_COLOR: 1
57-
with:
58-
tg_dir: ${{ env.working_dir }}
59-
tg_command: output
51+
# - name: Terragrunt Output
52+
# uses: gruntwork-io/terragrunt-action@v3
53+
# env:
54+
# TG_TF_FORWARD_STDOUT: 1
55+
# TG_NO_COLOR: 1
56+
# with:
57+
# tg_dir: ${{ env.working_dir }}
58+
# tg_command: output
6059

6160
- name: Read Values
61+
id: terragrunt_output
6262
run: |
6363
cd terragrunt/live/website
64-
terragrunt output bucket_name
65-
echo "Distribution ID: ${{ steps.terragrunt_step.outputs.distribution_id }}
64+
printf "distribution_id=%s\n" $(terragrunt output distribution_id) >> "$GITHUB_OUTPUT"
65+
printf "bucket_name=%s\n" $(terragrunt output bucket_name) >> "$GITHUB_OUTPUT"
6666
6767
- name: Build Jekyll project
6868
run: |
@@ -72,7 +72,7 @@ jobs:
7272
# TODO: fail workflow if bucket name or distribution_id is not found
7373

7474
- name: Copy output to S3
75-
run: aws s3 sync ./_site/ s3://${{ steps.terragrunt_step.outputs.bucket_name }} --acl public-read --delete --cache-control max-age=604800
75+
run: aws s3 sync ./_site/ s3://${{ steps.terragrunt_output.outputs.bucket_name }} --acl public-read --delete --cache-control max-age=604800
7676

7777
- name: Invalidate Cloudfront
78-
run: aws cloudfront create-invalidation --distribution-id ${{ steps.terragrunt_step.outputs.distribution_id }} --paths "/*"
78+
run: aws cloudfront create-invalidation --distribution-id ${{ steps.terragrunt_output.outputs.distribution_id }} --paths "/*"

0 commit comments

Comments
 (0)