buildx/watchdog/Makefile

19 lines
521 B
Makefile
Raw Normal View History

2020-09-05 08:56:10 +00:00
NAMESPACE=alemairebe
include version
2020-08-28 12:48:19 +00:00
2020-09-05 08:56:10 +00:00
IMAGE=watchdog
nopush:
2020-08-28 12:48:19 +00:00
docker buildx build --platform linux/amd64 --load \
2020-08-28 12:55:57 +00:00
--build-arg VERSION=$(VERSION) \
2020-09-05 08:56:10 +00:00
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .
2020-08-28 12:48:19 +00:00
2020-09-05 08:56:10 +00:00
push:
2020-08-28 12:48:19 +00:00
docker buildx build --platform linux/amd64,linux/arm64,linux/arm,linux/ppc64le --push \
2020-08-28 12:55:57 +00:00
--build-arg VERSION=$(VERSION) \
2020-09-05 08:56:10 +00:00
--cache-from=type=registry,ref=${namespace}/buildx:${IMAGE} \
--cache-to=type=registry,ref=${namespace}/buildx:${IMAGE} \
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .