diff --git a/.travis.yml b/.travis.yml index b3e8df21..d9be39cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,29 +7,19 @@ branches: - /.*/ jobs: + fast_finish: true include: - - name: "Docker publish - linux/arm/v7" + - name: "Docker publish" php: '7.4' if: NOT type = pull_request env: - DOCKER_PUBLISH="true" - - PLATFORM="linux/arm/v7" - - name: "Docker publish - linux/arm64/v8" - php: '7.4' - if: NOT type = pull_request - env: - - DOCKER_PUBLISH="true" - - PLATFORM="linux/arm64/v8" - - name: "Docker publish - linux/amd64" - php: '7.4' - if: NOT type = pull_request - env: - - DOCKER_PUBLISH="true" - - PLATFORM="linux/amd64" - name: "CI" php: '7.4' env: - DOCKER_PUBLISH="false" + allow_failures: + - name: "Docker publish" services: - docker diff --git a/docker/build b/docker/build index 728bd216..141b0a8b 100755 --- a/docker/build +++ b/docker/build @@ -21,12 +21,12 @@ if [[ ! -z $TRAVIS_TAG ]]; then docker buildx build --push \ --build-arg SHLINK_VERSION=${TRAVIS_TAG#?} \ - --platform ${PLATFORM} \ + --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \ ${TAGS} . # If build branch is develop, build latest (on master, when there's no tag, do not build anything) elif [[ "$TRAVIS_BRANCH" == 'develop' ]]; then docker buildx build --push \ - --platform ${PLATFORM} \ + --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \ -t shlinkio/shlink:latest . fi