Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
bfc9cfdb
Commit
bfc9cfdb
authored
Feb 19, 2016
by
Lucas Käldström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not push images that don't exist
parent
be803eaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
common.sh
build/common.sh
+16
-11
No files found.
build/common.sh
View file @
bfc9cfdb
...
@@ -1547,8 +1547,6 @@ function kube::release::docker::release() {
...
@@ -1547,8 +1547,6 @@ function kube::release::docker::release() {
local
archs
=(
local
archs
=(
"amd64"
"amd64"
"arm"
"arm"
"arm64"
"ppc64le"
)
)
local
docker_push_cmd
=(
"
${
DOCKER
[@]
}
"
)
local
docker_push_cmd
=(
"
${
DOCKER
[@]
}
"
)
...
@@ -1558,18 +1556,25 @@ function kube::release::docker::release() {
...
@@ -1558,18 +1556,25 @@ function kube::release::docker::release() {
for
arch
in
"
${
archs
[@]
}
"
;
do
for
arch
in
"
${
archs
[@]
}
"
;
do
for
binary
in
"
${
binaries
[@]
}
"
;
do
for
binary
in
"
${
binaries
[@]
}
"
;
do
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
}
"
#
If we have a amd64 docker image. Tag it without -amd64 also and push it for compatibility with earlier versions
#
Temporary fix. hyperkube-arm isn't built in the release process, so we can't push it
if
[[
${
arch
}
==
"amd64"
]]
;
then
# This if statement skips the push for hyperkube-arm
local
legacy_docker_target
=
"
${
KUBE_DOCKER_REGISTRY
}
/
${
binary
}
:
${
KUBE_DOCKER_IMAGE_TAG
}
"
if
[[
${
arch
}
!=
"arm"
||
${
binary
}
!=
"hyperkube"
]]
;
then
"
${
DOCKER
[@]
}
"
tag
-f
"
${
docker_target
}
"
"
${
legacy_docker_target
}
"
2>/dev/null
kube::log::status
"Pushing
${
binary
}
to
${
legacy_docker_target
}
"
local
docker_target
=
"
${
KUBE_DOCKER_REGISTRY
}
/
${
binary
}
-
${
arch
}
:
${
KUBE_DOCKER_IMAGE_TAG
}
"
"
${
docker_push_cmd
[@]
}
"
push
"
${
legacy_docker_target
}
"
kube::log::status
"Pushing
${
binary
}
to
${
docker_target
}
"
"
${
docker_push_cmd
[@]
}
"
push
"
${
docker_target
}
"
# If we have a amd64 docker image. Tag it without -amd64 also and push it for compatibility with earlier versions
if
[[
${
arch
}
==
"amd64"
]]
;
then
local
legacy_docker_target
=
"
${
KUBE_DOCKER_REGISTRY
}
/
${
binary
}
:
${
KUBE_DOCKER_IMAGE_TAG
}
"
"
${
DOCKER
[@]
}
"
tag
-f
"
${
docker_target
}
"
"
${
legacy_docker_target
}
"
2>/dev/null
kube::log::status
"Pushing
${
binary
}
to
${
legacy_docker_target
}
"
"
${
docker_push_cmd
[@]
}
"
push
"
${
legacy_docker_target
}
"
fi
fi
fi
done
done
done
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment