mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-11 02:53:30 +00:00
Compare commits
No commits in common. "7fef6bf63ac2128a2160222b6048b577549cebb2" and "bb195ddc1294c8e1c0820ada5fc557790d5c5abf" have entirely different histories.
7fef6bf63a
...
bb195ddc12
@ -202,19 +202,6 @@ 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
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
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