From df280f3dd4138ab77a890be209348bcb49c995cb Mon Sep 17 00:00:00 2001 From: Per-Arne Andersen Date: Fri, 4 Sep 2020 07:10:06 +0200 Subject: [PATCH] Create ci.sh --- scripts/ci.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 scripts/ci.sh diff --git a/scripts/ci.sh b/scripts/ci.sh new file mode 100644 index 0000000..e4e0eed --- /dev/null +++ b/scripts/ci.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ "$TRAVIS_PULL_REQUEST" = "true" ] || [ "$TRAVIS_BRANCH" != "master" ]; then + docker buildx build \ + --progress plain \ + --platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x \ + . + exit $? +fi +echo $DOCKER_PASSWORD | docker login -u qmcgaw --password-stdin &> /dev/null +TAG="${TRAVIS_TAG:-latest}" +docker buildx build \ + --progress plain \ + --platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x \ + -t $DOCKER_REPO:$TAG \ + --push \ + .