Skip to content

Commit 97045a8

Browse files
committed
Copy version.txt from Docker image into .build
1 parent 542cbd9 commit 97045a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/cdk_release_code.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ jobs:
8484
run: |
8585
mkdir -p .build
8686
tar -xf artifact.tar -C .build
87-
echo "Extracted files:"
88-
find .build -type f | head -20
8987
9088
- name: Retrieve AWS Account ID
9189
id: retrieve-account-id
@@ -101,6 +99,9 @@ jobs:
10199
docker pull "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/cdk-utils-build-repo:latest"
102100
docker tag "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/cdk-utils-build-repo:latest" cdk-utils-build-repo:latest
103101
102+
- 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+
104105
- name: Configure AWS Credentials
105106
id: connect-aws
106107
uses: aws-actions/configure-aws-credentials@v4

0 commit comments

Comments
 (0)