buildx/watchdog/Makefile

20 lines
614 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) \
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
--tag ${CI_REGISTRY_IMAGE}/${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) \
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
2020-09-05 09:01:30 +00:00
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
2020-09-05 08:56:10 +00:00