mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-10 18:43:29 +00:00
28 lines
801 B
Makefile
28 lines
801 B
Makefile
NAMESPACE=alemairebe
|
|
VERSION=1.36.0
|
|
IMAGE=synapse
|
|
|
|
push: get decompress build
|
|
|
|
dev: get decompress build_dev
|
|
|
|
get:
|
|
wget https://github.com/matrix-org/synapse/archive/refs/tags/v$(VERSION).tar.gz
|
|
|
|
decompress:
|
|
tar -xf v$(VERSION).tar.gz
|
|
|
|
build:
|
|
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
|
|
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
|
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
|
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) \
|
|
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
|
-f Dockerfile ${IMAGE}-${VERSION}
|
|
|
|
build_dev:
|
|
docker buildx build --platform linux/amd64,linux/arm64,linux/arm \
|
|
--output type=tar,dest=synapse.tar \
|
|
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
|
-f Dockerfile ${IMAGE}-${VERSION}
|