Jitsi, Matrix : use generic github tags archive URL and follow redirects

This commit is contained in:
Gitouche 2022-03-05 10:48:02 +01:00
parent 1c3f97a7e9
commit 0979e8daee
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ ensure_not_root
buildfolder=/tmp/docker-jitsi-meet-$$ buildfolder=/tmp/docker-jitsi-meet-$$
mkdir ${buildfolder} && mkdir ${buildfolder} &&
curl -s -- "https://codeload.github.com/jitsi/docker-jitsi-meet/tar.gz/refs/tags/${version}" | tar xz --strip-components 1 -C ${buildfolder}/ && { curl -sSfL -- "https://github.com/jitsi/docker-jitsi-meet/archive/refs/tags/${version}.tar.gz" | tar xz --strip-components 1 -C ${buildfolder}/ && {
podman pull docker.io/library/debian:bullseye-slim podman pull docker.io/library/debian:bullseye-slim
if ! podman image exists localhost/jitsi/base:${version}; then if ! podman image exists localhost/jitsi/base:${version}; then
podman build -t localhost/jitsi/base:${version} ${buildfolder}/base/ && podman build -t localhost/jitsi/base:${version} ${buildfolder}/base/ &&

View file

@ -11,7 +11,7 @@ buildfolder=/tmp/synapse-$$
if ! podman image exists localhost/matrixdotorg/synapse:${synapse_version}; then if ! podman image exists localhost/matrixdotorg/synapse:${synapse_version}; then
mkdir ${buildfolder} && mkdir ${buildfolder} &&
curl -s -- "https://codeload.github.com/matrix-org/synapse/tar.gz/refs/tags/${synapse_version}" | \tar xz --strip-components 1 -C ${buildfolder}/ && { curl -sSfL -- "https://github.com/matrix-org/synapse/archive/refs/tags/${synapse_version}.tar.gz" | \tar xz --strip-components 1 -C ${buildfolder}/ && {
podman run -d --name buildkitd --privileged docker.io/moby/buildkit:latest && podman run -d --name buildkitd --privileged docker.io/moby/buildkit:latest &&
curl -sSLf https://github.com/moby/buildkit/releases/download/v0.9.3/buildkit-v0.9.3.linux-amd64.tar.gz | \ curl -sSLf https://github.com/moby/buildkit/releases/download/v0.9.3/buildkit-v0.9.3.linux-amd64.tar.gz | \
tar xz -C ~/ bin/buildctl && tar xz -C ~/ bin/buildctl &&