File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 2626 - name : Build cdk-utils-build Docker image
2727 id : build-cdk-utils-build-image
2828 run : |
29- docker build -t "cdk-utils-build:${{ inputs.VERSION_NUMBER }}" -f docker/Dockerfile .
29+ docker build -t "cdk-utils-build:${{ inputs.VERSION_NUMBER }}" -f docker/Dockerfile --build-arg VERSION=${{ inputs.VERSION_NUMBER }} .
3030 docker save "cdk-utils-build:${{ inputs.VERSION_NUMBER }}" -o cdk-utils-build.img
3131
3232 - uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 11FROM ubuntu:24.04
2+
3+ ARG VERSION
4+
25RUN apt-get update \
36 && export DEBIAN_FRONTEND=noninteractive \
47 && apt-get -y upgrade
@@ -33,4 +36,6 @@ RUN asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
3336# copy files needed for deployment
3437COPY --chown=cdkuser docker/entrypoint.sh /home/cdkuser/
3538
39+ RUN echo "${VERSION}" > version.txt
40+
3641ENTRYPOINT ["/home/cdkuser/entrypoint.sh" ]
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -e
33
4+ VERSION=$( cat version.txt)
5+
6+ echo " **************************************"
7+ echo " RUNNING CDK_UTILS VERSION ${VERSION} "
8+ echo " **************************************"
9+ echo
10+ echo
11+
412if [ -z " ${CDK_APP_PATH} " ]; then
513 echo " CDK_APP_PATH is unset or set to the empty string"
614 exit 1
You can’t perform that action at this time.
0 commit comments