buildx/keycloak/Makefile

20 lines
602 B
Makefile
Raw Normal View History

2020-09-05 08:56:10 +00:00
NAMESPACE=alemairebe
include version
2020-07-29 14:01:00 +00:00
2020-09-05 08:56:10 +00:00
IMAGE=keycloak
nopush:
2020-07-29 14:01:00 +00:00
docker buildx build --platform linux/amd64 --load \
2020-09-05 08:56:10 +00:00
--build-arg VERSION=$(VERSION) \
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
2020-07-29 14:01:00 +00:00
2020-09-05 08:56:10 +00:00
push:
2020-07-29 14:01:00 +00:00
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
2020-09-05 08:56:10 +00:00
--build-arg VERSION=$(VERSION) \
2020-09-05 09:01:30 +00:00
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
--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