Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jburns24 committed Sep 11, 2023
1 parent c6a6ea0 commit 123775d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build-infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ jobs:
sudo apt install jq tree
## Fetch output from our terraform
- name: Pull Terrafrom output into GitHub Action ENV
- name: Pull Terraform output into GitHub Action ENV
run: |
echo "ecr_repository_url=$(terragrunt output --json | jq .ecr_repository_url.value -r)" >> $GITHUB_ENV
echo "ecs_task_arn=$(terragrunt output --json | jq .ecs_task_arn.value -r)" >> $GITHUB_ENV
echo "ecs_service_arn=$(terragrunt output --json | jq .ecs_service_arn.value -r)" >> $GITHUB_ENV
echo "ecs_cluster_arn=$(terragrunt output --json | jq .ecs_cluster_arn.value -r)" >> $GITHUB_ENV
terragrunt output --json > tmp_output.json
echo "ecr_repository_url=$(jq .ecr_repository_url.value -r < tmp_output.json)" >> $GITHUB_ENV
echo "ecs_task_arn=$(jq .ecs_task_arn.value -r < tmp_output.json)" >> $GITHUB_ENV
echo "ecs_service_arn=$(jq .ecs_service_arn.value -r < tmp_output.json)" >> $GITHUB_ENV
echo "ecs_cluster_arn=$(jq .ecs_cluster_arn.value -r < tmp_output.json)" >> $GITHUB_ENV
rm tmp_output.json
working-directory: terraform

- name: Fetch ECS Repo Url
Expand All @@ -70,6 +72,10 @@ jobs:
run: |
aws ecs describe-task-definition --task-definition ${{ env.ecs_task_arn }} --region ${{ env.AWS_REGION }} --output json >> task-definition.json
- name: Check what task-definitions.json looks like
run: |
cat task-definitions.json
- name: Render Amazon ECS task definition
id: render-web-container
uses: aws-actions/amazon-ecs-render-task-definition@v1
Expand Down

0 comments on commit 123775d

Please sign in to comment.