Skip to content

Commit

Permalink
fix(buildspec): wrap all colon-containing list items in block scalars
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Mar 17, 2026
1 parent 7bbe786 commit 3f7e07c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions codebuild/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ phases:
on-failure: ABORT
commands:
- echo "Installing terraform ${TF_VERSION}..."
- curl -sLo /tmp/tf.zip "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip"
- |
curl -sLo /tmp/tf.zip "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip"
- unzip -q /tmp/tf.zip -d /usr/local/bin && rm /tmp/tf.zip
- terraform version
- echo "Downloading tf script from gist..."
Expand All @@ -50,7 +51,7 @@ phases:
tf init -input=false
fi
- tf workspace select "$TF_WORKSPACE"
- echo "Active workspace: $(tf workspace show)"
- echo "Active workspace $(tf workspace show)"

build:
on-failure: ABORT
Expand Down Expand Up @@ -89,5 +90,7 @@ phases:
post_build:
commands:
- echo "Build completed at $(date -u '+%Y-%m-%dT%H:%M:%SZ')"
- echo "Workspace: $(tf workspace show 2>/dev/null || echo unknown)"
- |
echo "Build completed at $(date -u '+%Y-%m-%dT%H:%M:%SZ')"
- |
echo "Workspace: $(tf workspace show 2>/dev/null || echo unknown)"

0 comments on commit 3f7e07c

Please sign in to comment.