Skip to content

Commit 0da81f3

Browse files
committed
Enhance PR teardown workflow to include fallback for record processor image URI. Added logic to set a placeholder value if the image output is unavailable, ensuring variable validation during destruction processes remains functional.
1 parent 2ed0248 commit 0da81f3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/pr-teardown.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ jobs:
4848
make init apigee_environment=$APIGEE_ENVIRONMENT environment=$BACKEND_ENVIRONMENT sub_environment=$BACKEND_SUB_ENVIRONMENT
4949
make workspace apigee_environment=$APIGEE_ENVIRONMENT environment=$BACKEND_ENVIRONMENT sub_environment=$BACKEND_SUB_ENVIRONMENT
5050
echo "ID_SYNC_QUEUE_ARN=$(make -s output name=id_sync_queue_arn)" >> $GITHUB_ENV
51+
recordprocessor_image_uri="$(make -s output name=recordprocessor_image_uri 2>/dev/null || true)"
52+
if [ -z "${recordprocessor_image_uri}" ]; then
53+
# Destroy still evaluates variable validation, so provide a non-empty fallback when output is unavailable.
54+
recordprocessor_image_uri="placeholder.dkr.ecr.eu-west-2.amazonaws.com/imms-recordprocessor-repo@sha256:0000000000000000000000000000000000000000000000000000000000000000"
55+
fi
56+
echo "TF_VAR_recordprocessor_image_uri=${recordprocessor_image_uri}" >> $GITHUB_ENV
5157
5258
- name: Install poetry
5359
run: pip install poetry==2.1.4

0 commit comments

Comments
 (0)