Experiment: automatically push built images

This commit is contained in:
Andrejs Cunskis 2022-05-11 12:56:08 +00:00 committed by Rémy Coutable
parent 5a79c03924
commit 6bfe260f3b
15 changed files with 227 additions and 363 deletions

13
scripts/install-buildx Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
set -xeou pipefail
BUILDX_VERSION=${1}
BUILDX_DOWNLOAD_SHA256=${2}
BUILDX_DOWNLOAD_URL="https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-$(dpkg --print-architecture)"
curl -fsSL "${BUILDX_DOWNLOAD_URL}" -o docker-buildx
echo "${BUILDX_DOWNLOAD_SHA256} docker-buildx" | sha256sum -c -
mkdir -p /usr/local/lib/docker/cli-plugins
chmod +x docker-buildx && mv docker-buildx /usr/local/lib/docker/cli-plugins/