Skip to content

Commit c80e6c4

Browse files
committed
Update copy version.txt step
1 parent 97045a8 commit c80e6c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/cdk_release_code.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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 \

0 commit comments

Comments
 (0)