From 74d5330a881d9905d0249994e74f39536a4d6159 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sat, 30 Mar 2024 14:38:05 +0100 Subject: [PATCH] Containers : build from source using the SCM. --- podman-jitsi/ci_build-images.sh | 2 +- podman-matrix/ci_build-images.sh | 2 +- podman-peerjs/ci_build-images.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/podman-jitsi/ci_build-images.sh b/podman-jitsi/ci_build-images.sh index 6e55e65..b2ce16c 100755 --- a/podman-jitsi/ci_build-images.sh +++ b/podman-jitsi/ci_build-images.sh @@ -23,7 +23,7 @@ build_base() { } mkdir ${buildfolder} && -if curl -sSfL -- "https://github.com/jitsi/docker-jitsi-meet/archive/refs/tags/${version}.tar.gz" | tar xz --strip-components 1 -C ${buildfolder}/ ; then +if git clone -b ${version} --depth=1 https://github.com/jitsi/docker-jitsi-meet/ ${buildfolder} ; then if ! podman image exists git.garbaye.fr/garbaye/jitsi-jvb:${version}; then build_base TMPDIR=${HOME} podman image build -t git.garbaye.fr/garbaye/jitsi-jvb:${version} ${buildfolder}/jvb/ || exit 255 diff --git a/podman-matrix/ci_build-images.sh b/podman-matrix/ci_build-images.sh index c512c05..787f4e2 100755 --- a/podman-matrix/ci_build-images.sh +++ b/podman-matrix/ci_build-images.sh @@ -11,7 +11,7 @@ buildfolder=/tmp/synapse-$$ if ! podman image exists ${synapse_image}:${synapse_version}; then mkdir ${buildfolder} && - if curl -sSfL -- "https://github.com/element-hq/synapse/archive/refs/tags/${synapse_version}.tar.gz" | \tar xz --strip-components 1 -C ${buildfolder}/ ; then + if git clone -b ${synapse_version} --depth=1 https://github.com/element-hq/synapse/ ${buildfolder} ; then rm -rf "${HOME}/buildah-cache-${UID}" TMPDIR=${HOME} podman image build \ -t ${synapse_image}:${synapse_version} \ diff --git a/podman-peerjs/ci_build-images.sh b/podman-peerjs/ci_build-images.sh index ca91e3e..b555ec4 100755 --- a/podman-peerjs/ci_build-images.sh +++ b/podman-peerjs/ci_build-images.sh @@ -11,7 +11,7 @@ buildfolder=/tmp/peerjs-server-$$ if ! podman image exists ${upstream_images}:${version}; then mkdir ${buildfolder} && - curl -sSfL -- "https://github.com/peers/peerjs-server/archive/refs/tags/v${version}.tar.gz" | \tar xz --strip-components 1 -C ${buildfolder}/ && + git clone -b v${version} --depth=1 https://github.com/peers/peerjs-server/ ${buildfolder} && TMPDIR=${HOME} podman image build \ --label org.opencontainers.image.description='PeerServer helps establishing connections between PeerJS clients. Data is not proxied through the server.' \ --label org.opencontainers.image.source='https://github.com/peers/peerjs-server' \