Skip to content

Commit 3adcaba

Browse files
committed
chore(imagebuilder): add codename build-arg
1 parent b81c95c commit 3adcaba

6 files changed

Lines changed: 9 additions & 5 deletions

File tree

.woodpecker/build-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

.woodpecker/test-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pipeline:
1414
commands:
1515
- make test
1616
secrets:
17+
- codename
1718
- dev_registry
1819
when:
1920
event:

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ build:
2828
@echo Nothing to do.
2929

3030
docker-build:
31-
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} -f rootfs/Dockerfile rootfs
31+
docker build ${DOCKER_BUILD_FLAGS} --build-arg CODENAME=${CODENAME} -t ${IMAGE} -f rootfs/Dockerfile rootfs
3232
docker tag ${IMAGE} ${MUTABLE_IMAGE}
3333

3434
docker-buildx:
35-
docker buildx build --platform ${PLATFORM} ${DOCKER_BUILD_FLAGS} -t ${IMAGE} -f rootfs/Dockerfile rootfs --push
35+
docker buildx build --build-arg CODENAME=${CODENAME} --platform ${PLATFORM} ${DOCKER_BUILD_FLAGS} -t ${IMAGE} -f rootfs/Dockerfile rootfs --push
3636

3737
deploy: docker-build docker-push
3838

charts/imagebuilder/templates/imagebuilder-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
heritage: drycc
77
data:
8-
buildpacks: "{{.Values.imageRegistry}}/{{.Values.imageOrg}}/buildpacks:bookworm"
8+
buildpacks: "{{.Values.imageRegistry}}/{{.Values.imageOrg}}/buildpacks:{{.Values.codename}}"
99
auths.json: |
1010
{
1111
"auths": {

charts/imagebuilder/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ imageOrg: "drycc"
22
imagePullPolicy: "Always"
33
imageTag: "canary"
44
imageRegistry: "registry.drycc.cc"
5+
codename: bookworm
56
containerRegistries: |
67
unqualified-search-registries = ["registry.drycc.cc"]
78
short-name-mode="permissive"

rootfs/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
FROM registry.drycc.cc/drycc/base:bookworm
1+
ARG CODENAME
2+
FROM registry.drycc.cc/drycc/base:${CODENAME}
23

34
ENV DRYCC_UID=1001 \
45
DRYCC_GID=1001 \
56
DRYCC_HOME_DIR=/home/drycc \
67
PODMAN_VERSION="4.5.1" \
7-
MC_VERSION="2023.06.15.15.08.26" \
8+
MC_VERSION="2023.06.23.18.12.07" \
89
CADDY_VERSION="2.6.4" \
910
PACK_VERSION="0.29.0" \
1011
GOSU_VERSION="1.16"

0 commit comments

Comments
 (0)