Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix-null-image-tags-in-rollback-…
Browse files Browse the repository at this point in the history
…step' into fix-null-image-tags-in-rollback-step

# Conflicts:
#	infra/terraform/modules/account/main.tf
  • Loading branch information
fibble committed Nov 28, 2024
2 parents c8f03f1 + 1a81d6a commit 334fbe2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy-environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,16 @@ jobs:
echo "No outputs found, could be first run"
fi
- name: Get Current Versions from Terraform State
id: get_current_versions
run: |
terraform output -json > outputs.json || true
if [ -s outputs.json ] && [ "$(jq -r 'length' outputs.json)" -gt 0 ]; then
jq -r 'to_entries[] | select(.key | startswith("deployed_")) | "\(.key | ltrimstr("deployed_"))=\(.value.value // "")"' outputs.json >> $GITHUB_OUTPUT
else
echo "No outputs found, could be first run"
fi
- name: Select workspace
if: ${{ inputs.workspace }}
run: terraform workspace select -or-create ${{ inputs.workspace }}
Expand Down

0 comments on commit 334fbe2

Please sign in to comment.