Skip to content

Commit 51b77d7

Browse files
committed
Check for version.txt in cdk-utils-build container
1 parent 0f88cbd commit 51b77d7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/cdk_release_code.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,27 @@ jobs:
9999
docker pull "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/cdk-utils-build-repo:latest"
100100
docker tag "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/cdk-utils-build-repo:latest" cdk-utils-build-repo:latest
101101
102+
- name: Check for version.txt in cdk-utils-build container
103+
run: |
104+
echo "🔍 Inspecting cdk-utils-build-repo:latest for version.txt"
105+
106+
docker run --rm cdk-utils-build-repo:latest /bin/bash -c '
107+
echo "Looking for version.txt in common paths..."
108+
109+
for path in /version.txt /home/cdkuser/workspace/version.txt /app/version.txt /opt/version.txt; do
110+
if [ -f "$path" ]; then
111+
echo "✅ Found version.txt at $path"
112+
echo "----------------------------------------"
113+
cat "$path"
114+
echo "----------------------------------------"
115+
exit 0
116+
fi
117+
done
118+
119+
echo "❌ version.txt not found in expected locations"
120+
exit 1
121+
'
122+
102123
- name: Configure AWS Credentials
103124
id: connect-aws
104125
uses: aws-actions/configure-aws-credentials@v4

0 commit comments

Comments
 (0)