File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,11 @@ jobs:
100100 docker tag "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/cdk-utils-build-repo:latest" cdk-utils-build-repo:latest
101101
102102 - name : Copy version.txt from Docker image into .build
103- run : docker run --rm --entrypoint cat cdk-utils-build-repo:latest /version.txt > .build/version.txt
104-
103+ run : |
104+ docker run --rm --entrypoint bash cdk-utils-build-repo:latest \
105+ -c 'find / -name version.txt 2>/dev/null | head -n1 | xargs cat' \
106+ > .build/version.txt
107+
105108 - name : Configure AWS Credentials
106109 id : connect-aws
107110 uses : aws-actions/configure-aws-credentials@v4
@@ -125,9 +128,6 @@ jobs:
125128 SLACK_BOT_TOKEN : " ${{ secrets.SLACK_BOT_TOKEN }}"
126129 SLACK_SIGNING_SECRET : " ${{ secrets.SLACK_SIGNING_SECRET }}"
127130
128- - name : Create version.txt for CDK utils container
129- run : echo "cdk-utils-latest" > .build/version.txt
130-
131131 - name : Show diff
132132 run : |
133133 docker run \
You can’t perform that action at this time.
0 commit comments