mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Push fat manifest for multi-arch images
Signed-off-by: Nitesh Konkar <niteshkonkar@in.ibm.com>
This commit is contained in:
parent
678152bc00
commit
ae23e19f20
@ -12,6 +12,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
include ../../hack/make-rules/Makefile.manifest
|
||||||
|
|
||||||
REGISTRY ?= gcr.io/kubernetes-e2e-test-images
|
REGISTRY ?= gcr.io/kubernetes-e2e-test-images
|
||||||
GOARM=7
|
GOARM=7
|
||||||
QEMUVERSION=v2.9.1
|
QEMUVERSION=v2.9.1
|
||||||
@ -34,7 +36,7 @@ all: all-container
|
|||||||
all-container:
|
all-container:
|
||||||
./image-util.sh build $(WHAT)
|
./image-util.sh build $(WHAT)
|
||||||
|
|
||||||
all-push: all-container
|
all-push: all-container manifest-tool
|
||||||
./image-util.sh push $(WHAT)
|
./image-util.sh push $(WHAT)
|
||||||
|
|
||||||
.PHONY: all all-push all-container
|
.PHONY: all all-push all-container
|
||||||
|
@ -99,6 +99,10 @@ push() {
|
|||||||
TAG=$(<${IMAGE}/VERSION)
|
TAG=$(<${IMAGE}/VERSION)
|
||||||
docker push ${REGISTRY}/${IMAGE}-${arch}:${TAG}
|
docker push ${REGISTRY}/${IMAGE}-${arch}:${TAG}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Make archs list into OS/architecture pair. Eg: 'amd64 ppc64le' to 'linux/amd64,linux/ppc64le'
|
||||||
|
archs=$(echo $archs | sed -e 's/[^ ]* */linux\/&/g' -e 's/ /,/g')
|
||||||
|
manifest-tool push from-args --platforms ${archs} --template ${REGISTRY}/${IMAGE}-ARCH:${TAG} --target ${REGISTRY}/${IMAGE}:${TAG}
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function is for building the go code
|
# This function is for building the go code
|
||||||
|
Loading…
Reference in New Issue
Block a user