diff --git a/drone/drone-runner-deployment.yaml b/drone/drone-runner-deployment.yaml index 2e4a6cd..1bd0e99 100644 --- a/drone/drone-runner-deployment.yaml +++ b/drone/drone-runner-deployment.yaml @@ -36,5 +36,3 @@ spec: value: "IfNotPresent" - name: DRONE_RUNNER_IMAGE_PULL_SECRETS value: "" - - name: DRONE_RUNNER_IMAGE_PULL_MIRRORS - value: "docker.io/drone/git:latest=registry.t-aaron.com/drone/git:latest,docker.io/drone/placeholder:1=registry.t-aaron.com/drone/placeholder:1" diff --git a/images/drone-images.tar b/images/drone-images.tar new file mode 100644 index 0000000..42524ed Binary files /dev/null and b/images/drone-images.tar differ diff --git a/images/installImages.sh b/images/installImages.sh new file mode 100644 index 0000000..bec12d6 --- /dev/null +++ b/images/installImages.sh @@ -0,0 +1,12 @@ + + + + +# 1. 导入镜像到 containerd +sudo /usr/local/bin/k3s ctr images import drone-git.tar +sudo /usr/local/bin/k3s ctr images import drone-placeholder.tar + +# 2. 重新标记为私有仓库地址 +sudo /usr/local/bin/k3s ctr images tag drone/git:latest registry.t-aaron.com/drone/git:latest +sudo /usr/local/bin/k3s ctr images tag drone/placeholder:1 registry.t-aaron.com/drone/placeholder:1 + diff --git a/images/k3s-airgap-images-amd64.tar.gz b/images/k3s-airgap-images-amd64.tar.gz new file mode 100644 index 0000000..3bc11dd Binary files /dev/null and b/images/k3s-airgap-images-amd64.tar.gz differ