Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 066e56ade8 | |||
| 7b8dfe2663 | |||
| 280e5120ab | |||
| 6fc7bb8521 | |||
| 0ecf51dc26 | |||
| 182abc68de | |||
| 2c39a17e69 | |||
| 58629c0bdc | |||
| 2399a10cd4 |
+15
-16
@@ -36,28 +36,27 @@ steps:
|
||||
memory: 4Gi
|
||||
cpu: 2
|
||||
|
||||
# The default distro also carries the unsuffixed tags.
|
||||
- name: docker-default
|
||||
# The default distro's unsuffixed tag is an alias of the image the step above just
|
||||
# pushed, not a second build of it: imagetools create only writes a new tag reference
|
||||
# to the existing manifest, so :<version> and :<version>-<suffix> are one digest. No
|
||||
# daemon is involved; the internal CA is baked into this image at /etc/docker/certs.d/.
|
||||
- name: docker-default-tag
|
||||
image: "artifactapi.k8s.syd1.au.unkin.net/docker-internal/plugin-docker-buildx:latest"
|
||||
when:
|
||||
- evaluate: 'DEFAULT == "true"'
|
||||
settings:
|
||||
registry: artifactapi.k8s.syd1.au.unkin.net
|
||||
repo: "artifactapi.k8s.syd1.au.unkin.net/docker-internal/gobuilder"
|
||||
target: image
|
||||
build_args:
|
||||
BASE_IMAGE_NAME: "${BASE_IMAGE_NAME}"
|
||||
DISTRO: "${DISTRO}"
|
||||
tags:
|
||||
- "${CI_COMMIT_TAG##v}"
|
||||
- latest
|
||||
environment:
|
||||
REPO: "artifactapi.k8s.syd1.au.unkin.net/docker-internal/gobuilder"
|
||||
VERSION: "${CI_COMMIT_TAG##v}"
|
||||
SUFFIX: "${TAG_SUFFIX}"
|
||||
commands:
|
||||
- 'docker buildx imagetools create -t "$REPO:$VERSION" "$REPO:$VERSION-$SUFFIX"'
|
||||
backend_options:
|
||||
kubernetes:
|
||||
serviceAccountName: default
|
||||
resources:
|
||||
requests:
|
||||
memory: 1Gi
|
||||
cpu: 1
|
||||
memory: 256Mi
|
||||
cpu: 250m
|
||||
limits:
|
||||
memory: 4Gi
|
||||
cpu: 2
|
||||
memory: 512Mi
|
||||
cpu: 500m
|
||||
|
||||
@@ -3,7 +3,7 @@ when:
|
||||
|
||||
steps:
|
||||
- name: pre-commit
|
||||
image: "git.unkin.net/unkin/almalinux9-gobuilder:20260606"
|
||||
image: "artifactapi.k8s.syd1.au.unkin.net/docker-internal/gobuilder:0.1.0-alma9"
|
||||
commands:
|
||||
- uvx pre-commit run --all-files
|
||||
backend_options:
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
ARG REGISTRY=artifactapi.k8s.syd1.au.unkin.net/docker-internal
|
||||
# The container-base release this image is built on — the one place to bump it.
|
||||
ARG BASE_VERSION=0.1.0
|
||||
ARG BASE_VERSION=0.1.3
|
||||
ARG BASE_IMAGE_NAME=almalinux9
|
||||
|
||||
FROM ${REGISTRY}/${BASE_IMAGE_NAME}:${BASE_VERSION} AS image
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
The estate's Go toolchain image, built on each `container-base` distro image.
|
||||
Published as `artifactapi.k8s.syd1.au.unkin.net/docker-internal/gobuilder:<version>-<suffix>`;
|
||||
the default distro also gets the unsuffixed `:<version>` and `:latest`.
|
||||
the default distro's build is retagged as the unsuffixed `:<version>`, so both resolve
|
||||
to one digest. Only explicit versions are published; never a floating tag.
|
||||
|
||||
| distro | from | tag suffix | default |
|
||||
| --- | --- | --- | --- |
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ EOF
|
||||
done
|
||||
done
|
||||
|
||||
# Exactly one distro owns the unsuffixed :<version> and :latest tags.
|
||||
# Exactly one distro owns the unsuffixed :<version> tag.
|
||||
defaults=$(grep -l 'DEFAULT="true"' distros/*/distro.env | wc -l)
|
||||
[ "$defaults" -eq 1 ] || { echo "expected exactly one distro with DEFAULT=\"true\", found ${defaults}"; fail=1; }
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
BASE_IMAGE_NAME="almalinux9"
|
||||
IMAGE="gobuilder"
|
||||
TAG_SUFFIX="alma9"
|
||||
# The default distro also gets the unsuffixed :<version> and :latest tags.
|
||||
# The default distro also gets the unsuffixed :<version> tag.
|
||||
DEFAULT="true"
|
||||
|
||||
# Estate local repo used to prove inherited HTTPS trust.
|
||||
|
||||
Reference in New Issue
Block a user