buildx/hugo/Makefile
2021-05-08 11:07:27 +00:00

15 lines
409 B
Makefile

NAMESPACE=alemairebe
IMAGE=hugo
VERSION=0.83.1
push: build
build:
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
--build-arg HUGO_VERSION=${VERSION} \
--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) .