34 lines
1019 B
Cheetah
34 lines
1019 B
Cheetah
matrix:
|
|
ARCH:
|
|
{arch_list}
|
|
|
|
when:
|
|
- event: tag
|
|
ref: "refs/tags/v*"
|
|
{timeout_block}
|
|
labels:
|
|
arch: ${{ARCH}}
|
|
|
|
# Thin wrapper (cluster #196, emmett#44): CI runs the SAME {script} a
|
|
# developer runs, so CI and local can't drift. CI-specific bits are env
|
|
# overrides only: BUILDKIT_ADDR -> the in-cluster NATIVE per-arch buildkit
|
|
# (no QEMU), PUBLISH=1 -> actually push. Output is unchanged: a per-arch
|
|
# :<version>-<arch> image, later merged into :<version>+:latest by manifest.yaml.
|
|
steps:
|
|
- name: build-and-push
|
|
image: {image}:latest
|
|
environment:
|
|
REGISTRY_TOKEN:
|
|
from_secret: registry_token
|
|
BUILDKIT_ADDR: "tcp://{buildkit_prefix}-${{ARCH}}.infra.svc.cluster.local:1234"
|
|
PUBLISH: "1"
|
|
commands:
|
|
- echo "▸ arch=$(uname -m)"
|
|
- {script} --arch "${{ARCH}}"
|
|
backend_options:
|
|
kubernetes:
|
|
{node_selector_block} labels:
|
|
commit-tag: "${{CI_COMMIT_TAG}}"
|
|
pipeline-number: "${{CI_PIPELINE_NUMBER}}"
|
|
build-arch: "${{ARCH}}"
|