mirror of
https://github.com/qdm12/gluetun.git
synced 2026-06-19 18:04:09 +02:00
Changed CI script
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ "$TRAVIS_PULL_REQUEST" = "true" ] || [ "$TRAVIS_BRANCH" != "master" ]; then
|
if [ "$TRAVIS_PULL_REQUEST" = "true" ]; then
|
||||||
echo "Building without pushing to Docker Hub"
|
echo "Building pull request without pushing to Docker Hub"
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--progress plain \
|
--progress plain \
|
||||||
--platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x \
|
--platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x \
|
||||||
@@ -9,7 +9,15 @@ if [ "$TRAVIS_PULL_REQUEST" = "true" ] || [ "$TRAVIS_BRANCH" != "master" ]; then
|
|||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
echo $DOCKER_PASSWORD | docker login -u qmcgaw --password-stdin &> /dev/null
|
echo $DOCKER_PASSWORD | docker login -u qmcgaw --password-stdin &> /dev/null
|
||||||
TAG="${TRAVIS_TAG:-latest}"
|
TAG="$TRAVIS_TAG"
|
||||||
|
if [ -z $TAG ]; then
|
||||||
|
if [ "$TRAVIS_BRANCH" = "master" ]; then
|
||||||
|
TAG=latest
|
||||||
|
else
|
||||||
|
TAG="$TRAVIS_BRANCH"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Building Docker images for \"$DOCKER_REPO:$TAG\""
|
echo "Building Docker images for \"$DOCKER_REPO:$TAG\""
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--progress plain \
|
--progress plain \
|
||||||
|
|||||||
Reference in New Issue
Block a user