mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-10 18:43:29 +00:00
15 lines
410 B
Makefile
15 lines
410 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) .
|