ci: use arch-scoped buildkit service (buildkit-<arch>) instead of per-instance
ci/woodpecker/push/container Pipeline was successful
ci/woodpecker/push/container Pipeline was successful
This commit is contained in:
@@ -42,13 +42,13 @@ steps:
|
|||||||
from_secret: registry_token
|
from_secret: registry_token
|
||||||
# In-cluster native arm64 buildkit (kotkan's arch). ci/local.sh treats
|
# In-cluster native arm64 buildkit (kotkan's arch). ci/local.sh treats
|
||||||
# this as a native remote builder and skips qemu emulation.
|
# this as a native remote builder and skips qemu emulation.
|
||||||
BUILDKIT_ADDR: "tcp://buildkit-rootless-arm64.infra.svc.cluster.local:1234"
|
BUILDKIT_ADDR: "tcp://buildkit-arm64.infra.svc.cluster.local:1234"
|
||||||
PUBLISH: "1"
|
PUBLISH: "1"
|
||||||
commands:
|
commands:
|
||||||
- echo "▸ arch=$(uname -m)"
|
- echo "▸ arch=$(uname -m)"
|
||||||
# Wait for the in-cluster buildkit to be reachable (it can be cold).
|
# Wait for the in-cluster buildkit to be reachable (it can be cold).
|
||||||
- |
|
- |
|
||||||
BUILDER_HOST="buildkit-rootless-arm64.infra.svc.cluster.local"
|
BUILDER_HOST="buildkit-arm64.infra.svc.cluster.local"
|
||||||
BUILDER_PORT="1234"
|
BUILDER_PORT="1234"
|
||||||
echo "Waiting for buildkit at $BUILDER_HOST:$BUILDER_PORT..."
|
echo "Waiting for buildkit at $BUILDER_HOST:$BUILDER_PORT..."
|
||||||
for i in $(seq 1 30); do
|
for i in $(seq 1 30); do
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
# Builder is parameterized:
|
# Builder is parameterized:
|
||||||
# BUILDKIT_ADDR default docker-container://local (dev: local buildkitd)
|
# BUILDKIT_ADDR default docker-container://local (dev: local buildkitd)
|
||||||
# CI overrides to the in-cluster native-arch remote, e.g.
|
# CI overrides to the in-cluster native-arch remote, e.g.
|
||||||
# tcp://buildkit-rootless-arm64.infra.svc.cluster.local:1234
|
# tcp://buildkit-arm64.infra.svc.cluster.local:1234
|
||||||
#
|
#
|
||||||
# kotkan (the deploy target) is arm64, so the default target arch is arm64.
|
# kotkan (the deploy target) is arm64, so the default target arch is arm64.
|
||||||
# Foreign-arch (an arch != the host) is emulated via qemu binfmt and is
|
# Foreign-arch (an arch != the host) is emulated via qemu binfmt and is
|
||||||
|
|||||||
Reference in New Issue
Block a user