buildx/hugo/Makefile

15 lines
410 B
Makefile
Raw Normal View History

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) .