mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-11 02:53:30 +00:00
Compare commits
6 Commits
bb195ddc12
...
7fef6bf63a
Author | SHA1 | Date | |
---|---|---|---|
7fef6bf63a | |||
7ea1becf24 | |||
465cee68bd | |||
0a44914536 | |||
d38a19bfee | |||
d752fcfe68 |
@ -202,6 +202,19 @@ shields:
|
||||
changes:
|
||||
- shields/*
|
||||
|
||||
synapse:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd synapse
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- synapse/*
|
||||
|
||||
.docker_init: &docker_init |
|
||||
if ! docker info &>/dev/null; then
|
||||
if [ -z "${DOCKER_HOST}" -a "${KUBERNETES_PORT}" ]; then
|
||||
|
20
synapse/Makefile
Normal file
20
synapse/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
NAMESPACE=alemairebe
|
||||
VERSION=1.32.2
|
||||
|
||||
IMAGE=synapse
|
||||
.ONESHELL: # Applies to every targets in the file!
|
||||
|
||||
push: get decompress build
|
||||
|
||||
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) \
|
||||
-f ${IMAGE}-${VERSION}/docker/Dockerfile ${IMAGE}-${VERSION}
|
Loading…
Reference in New Issue
Block a user