review builds

This commit is contained in:
2020-09-05 10:56:10 +02:00
parent 26c7e17e03
commit 4df932af75
14 changed files with 55 additions and 84 deletions

View File

@ -1,13 +1,18 @@
include watchdog/.version
NAMESPACE=alemairebe
include version
watchdog-nopush:
IMAGE=watchdog
nopush:
docker buildx build --platform linux/amd64 --load \
--build-arg VERSION=$(VERSION) \
--tag alemairebe/watchdog:$(VERSION) watchdog
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .
watchdog:
push:
docker buildx build --platform linux/amd64,linux/arm64,linux/arm,linux/ppc64le --push \
--build-arg VERSION=$(VERSION) \
--cache-from=type=registry,ref=alemairebe/watchdog \
--cache-to=type=registry,ref=alemairebe/watchdog \
--tag alemairebe/watchdog:$(VERSION) watchdog
--cache-from=type=registry,ref=${namespace}/buildx:${IMAGE} \
--cache-to=type=registry,ref=${namespace}/buildx:${IMAGE} \
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .