mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #21557 from luxas/fix_typo
Do not push images that don't exist
This commit is contained in:
commit
b24fc293e3
@ -1514,8 +1514,6 @@ function kube::release::docker::release() {
|
||||
local archs=(
|
||||
"amd64"
|
||||
"arm"
|
||||
"arm64"
|
||||
"ppc64le"
|
||||
)
|
||||
|
||||
local docker_push_cmd=("${DOCKER[@]}")
|
||||
@ -1529,6 +1527,12 @@ function kube::release::docker::release() {
|
||||
fi
|
||||
for arch in "${archs[@]}"; do
|
||||
for binary in "${binaries[@]}"; do
|
||||
|
||||
# Temporary fix. hyperkube-arm isn't built in the release process, so we can't push it
|
||||
# This if statement skips the push for hyperkube-arm
|
||||
if [[ ${arch} != "arm" || ${binary} != "hyperkube" ]]; then
|
||||
|
||||
|
||||
local docker_target="${KUBE_DOCKER_REGISTRY}/${binary}-${arch}:${KUBE_DOCKER_IMAGE_TAG}"
|
||||
kube::log::status "Pushing ${binary} to ${docker_target}"
|
||||
"${docker_push_cmd[@]}" push "${docker_target}"
|
||||
@ -1542,6 +1546,7 @@ function kube::release::docker::release() {
|
||||
kube::log::status "Pushing ${binary} to ${legacy_docker_target}"
|
||||
"${docker_push_cmd[@]}" push "${legacy_docker_target}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
if [[ "${KUBE_DOCKER_REGISTRY}" == "gcr.io/google_containers" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user