mirror of
https://github.com/outbackdingo/kubelet.git
synced 2026-01-27 18:19:26 +00:00
* Migrate from the internal Drone server using a GitHub Workflow to perform the multi-arch container image build * Use self-hosted GitHub runners on ARM64 to perform the ARM64 build step faster that QEMU/KVM emulation * Mandate approval for all workflow runs from outside contributors since the builds use push credentials and partially run internally
30 lines
856 B
Makefile
30 lines
856 B
Makefile
VERSION=$(shell git describe --tags --match=v* --always --dirty)
|
|
|
|
LOCAL_REPO?=poseidon/kubelet
|
|
IMAGE_REPO?=quay.io/poseidon/kubelet
|
|
|
|
image: \
|
|
image-amd64 \
|
|
image-arm64
|
|
|
|
image-%:
|
|
buildah bud -f Dockerfile.$* \
|
|
-t $(LOCAL_REPO):$(VERSION)-$* \
|
|
--arch $* --override-arch $* \
|
|
--format=docker .
|
|
|
|
push: \
|
|
push-amd64
|
|
push-arm64
|
|
|
|
push-%:
|
|
buildah tag $(LOCAL_REPO):$(VERSION)-$* $(IMAGE_REPO):$(VERSION)-$*
|
|
buildah push --format v2s2 $(IMAGE_REPO):$(VERSION)-$*
|
|
|
|
manifest:
|
|
buildah manifest create $(IMAGE_REPO):$(VERSION)
|
|
buildah manifest add $(IMAGE_REPO):$(VERSION) docker://$(IMAGE_REPO):$(VERSION)-amd64
|
|
buildah manifest add --variant v8 $(IMAGE_REPO):$(VERSION) docker://$(IMAGE_REPO):$(VERSION)-arm64
|
|
buildah manifest inspect $(IMAGE_REPO):$(VERSION)
|
|
buildah manifest push -f v2s2 $(IMAGE_REPO):$(VERSION) docker://$(IMAGE_REPO):$(VERSION)
|