File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ pipeline:
1616 - echo $CONTAINER_PASSWORD | docker login $DRYCC_REGISTRY --username $CONTAINER_USERNAME --password-stdin > /dev/null 2>&1
1717 - make docker-build docker-immutable-push
1818 secrets :
19+ - codename
1920 - dev_registry
2021 - drycc_registry
2122 - container_username
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ pipeline:
1414 commands :
1515 - make test
1616 secrets :
17+ - codename
1718 - dev_registry
1819 when :
1920 event :
Original file line number Diff line number Diff line change 1- FROM registry.drycc.cc/drycc/base:bookworm
1+ ARG CODENAME
2+ FROM registry.drycc.cc/drycc/base:${CODENAME}
23
34COPY rootfs/usr /usr/
45COPY rootfs/entrypoint.sh /entrypoint.sh
Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ all: docker-build docker-push
2323# For cases where we're building from local
2424# We also alter the RC file to set the image name.
2525docker-build :
26- docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} .
26+ docker build ${DOCKER_BUILD_FLAGS} --build-arg CODENAME= ${CODENAME} - t ${IMAGE} .
2727 docker tag ${IMAGE} ${MUTABLE_IMAGE}
2828
2929docker-buildx :
30- docker buildx build --platform ${PLATFORM} -t ${IMAGE} . --push
30+ docker buildx build --build-arg CODENAME= ${CODENAME} -- platform ${PLATFORM} -t ${IMAGE} . --push
3131
3232test : test-style
3333
You can’t perform that action at this time.
0 commit comments