2021-01-17 14:26:31 +00:00
|
|
|
NAMESPACE=alemairebe
|
|
|
|
include version
|
|
|
|
|
|
|
|
IMAGE=dendrite
|
|
|
|
|
2021-01-31 12:10:27 +00:00
|
|
|
nopush:
|
2021-01-17 14:26:31 +00:00
|
|
|
docker buildx build --platform linux/amd64 --load \
|
|
|
|
--build-arg VERSION=$(VERSION) \
|
|
|
|
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
|
|
|
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
|
|
|
|
2021-01-31 12:10:27 +00:00
|
|
|
push:
|
2021-01-19 10:49:57 +00:00
|
|
|
docker buildx build --platform linux/amd64,linux/arm64 --push \
|
2021-01-17 14:26:31 +00:00
|
|
|
--build-arg 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) .
|
|
|
|
|
|
|
|
git-clone:
|
2021-01-19 10:41:57 +00:00
|
|
|
git clone -b v${VERSION} --depth 1 https://github.com/matrix-org/dendrite.git
|