Small changes and cleanup
This commit is contained in:
5
ci.sh
5
ci.sh
@@ -5,17 +5,16 @@ if [ "$TRAVIS_PULL_REQUEST" = "true" ]; then
|
||||
return $?
|
||||
fi
|
||||
echo $DOCKER_PASSWORD | docker login -u qmcgaw --password-stdin &> /dev/null
|
||||
IMAGE_PATH=$1
|
||||
TAG="$TRAVIS_BRANCH"
|
||||
if [ "$TAG" = "master" ]; then
|
||||
TAG="${TRAVIS_TAG:-latest}"
|
||||
fi
|
||||
echo "Building Docker images for \"$IMAGE_PATH:$TAG\""
|
||||
echo "Building Docker images for \"$DOCKER_REPO:$TAG\""
|
||||
docker buildx build \
|
||||
--platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x \
|
||||
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
||||
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||
--build-arg VERSION=$TAG \
|
||||
-t $IMAGE_PATH:$TAG \
|
||||
-t $DOCKER_REPO:$TAG \
|
||||
--push \
|
||||
.
|
||||
|
||||
Reference in New Issue
Block a user