-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (21 loc) · 1.08 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
BASENAME=portainer-git-redeploy
VERSION=5
ifeq (${IMAGE_PATH},)
IMAGE_PATH=docker.io/enrico204/portainer-git-redeploy
endif
image:
buildah manifest rm containers-storage:${IMAGE_PATH}:${VERSION} > /dev/null 2>&1 || true
buildah manifest create ${IMAGE_PATH}:${VERSION}
buildah bud --manifest ${IMAGE_PATH}:${VERSION} -f Dockerfile --arch amd64
buildah bud --manifest ${IMAGE_PATH}:${VERSION} -f Dockerfile --arch arm64 --variant v8
image-distro:
buildah manifest rm containers-storage:${IMAGE_PATH}:${VERSION}-debian > /dev/null 2>&1 || true
buildah manifest create ${IMAGE_PATH}:${VERSION}-debian
buildah bud --manifest ${IMAGE_PATH}:${VERSION}-debian -f Dockerfile.debian --arch amd64
buildah bud --manifest ${IMAGE_PATH}:${VERSION}-debian -f Dockerfile.debian --arch arm64 --variant v8
push:
buildah manifest push --all --format=docker ${IMAGE_PATH}:${VERSION} docker://${IMAGE_PATH}:${VERSION}
push-distro:
buildah manifest push --all --format=docker ${IMAGE_PATH}:${VERSION}-debian docker://${IMAGE_PATH}:${VERSION}-debian
inspect:
buildah manifest inspect ${IMAGE_PATH}:${VERSION}