c97152fa9e
Build and Deploy Platform / build-and-deploy (push) Failing after 15s
Harbor proxy-cache works from core API but containerd can't use it directly, so all runner images are seeded to abrban/ project. Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
# Bootstrap: copy act_runner + kaniko into abrban/ (kubelet cannot use proxy-cache reliably)
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: seed-ci-images
|
|
namespace: cloudhost
|
|
spec:
|
|
ttlSecondsAfterFinished: 3600
|
|
backoffLimit: 2
|
|
template:
|
|
spec:
|
|
restartPolicy: Never
|
|
imagePullSecrets:
|
|
- name: registry-pull-secret
|
|
containers:
|
|
- name: skopeo
|
|
image: quay.io/skopeo/stable:latest
|
|
imagePullPolicy: IfNotPresent
|
|
envFrom:
|
|
- secretRef:
|
|
name: registry-egress-proxy
|
|
command:
|
|
- sh
|
|
- -ec
|
|
- |
|
|
set -eux
|
|
DEST="docker://harbor-registry.cloudhost.svc.cluster.local:5000/abrban"
|
|
CREDS="harbor_registry_user:harbor_registry_password"
|
|
skopeo copy --dest-tls-verify=false --dest-creds="${CREDS}" \
|
|
docker://docker.io/gitea/act_runner:0.2.11 \
|
|
"${DEST}/act-runner:0.2.11"
|
|
skopeo copy --dest-tls-verify=false --dest-creds="${CREDS}" \
|
|
docker://gcr.io/kaniko-project/executor:v1.23.2 \
|
|
"${DEST}/kaniko-executor:v1.23.2"
|
|
echo SEED_OK
|