mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-10 18:43:29 +00:00
Update synapse/Makefile, .gitlab-ci.yml files
This commit is contained in:
parent
bb195ddc12
commit
d752fcfe68
@ -202,6 +202,19 @@ shields:
|
|||||||
changes:
|
changes:
|
||||||
- shields/*
|
- shields/*
|
||||||
|
|
||||||
|
synapse:
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
script:
|
||||||
|
- cd synapse
|
||||||
|
- make push
|
||||||
|
only:
|
||||||
|
variables:
|
||||||
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||||
|
changes:
|
||||||
|
- synapse/*
|
||||||
|
|
||||||
.docker_init: &docker_init |
|
.docker_init: &docker_init |
|
||||||
if ! docker info &>/dev/null; then
|
if ! docker info &>/dev/null; then
|
||||||
if [ -z "${DOCKER_HOST}" -a "${KUBERNETES_PORT}" ]; then
|
if [ -z "${DOCKER_HOST}" -a "${KUBERNETES_PORT}" ]; then
|
||||||
|
18
synapse/Makefile
Normal file
18
synapse/Makefile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
NAMESPACE=alemairebe
|
||||||
|
VERSION=v1.32.2
|
||||||
|
|
||||||
|
IMAGE=synapse
|
||||||
|
|
||||||
|
push: get decompress build
|
||||||
|
|
||||||
|
get:
|
||||||
|
wget https://github.com/matrix-org/synapse/archive/refs/tags/$(VERSION).zip
|
||||||
|
|
||||||
|
decompress:
|
||||||
|
unzip $(VERSION).zip
|
||||||
|
|
||||||
|
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) ${IMAGE}-$(VERSION)
|
Loading…
Reference in New Issue
Block a user