Browse Source

Create ci.sh

pull/33/head
Per-Arne Andersen 4 years ago
committed by GitHub
parent
commit
df280f3dd4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      scripts/ci.sh

17
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 \
.
Loading…
Cancel
Save