From 65e6676c0047b09a62fa2bf8b712c9043f7cd8d9 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 16 May 2020 11:25:50 +0200 Subject: [PATCH] Removed docker image building on non-PR builds --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ce89e4bb..70ba9eb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ before_script: script: - composer ci - - if [[ ! -z "$DOCKERFILE_CHANGED" && "${TRAVIS_PHP_VERSION}" == "7.4" ]]; then docker build -t shlink-docker-image:temp . ; fi + - if [[ ! -z "${DOCKERFILE_CHANGED}" && "${TRAVIS_PHP_VERSION}" == "7.4" && "${TRAVIS_PULL_REQUEST}" != 'false' ]]; then docker build -t shlink-docker-image:temp . ; fi after_success: - rm -f build/clover.xml @@ -47,7 +47,7 @@ after_success: # Before deploying, build dist file for current travis tag before_deploy: - rm -f ocular.phar - - if [[ ! -z $TRAVIS_TAG && "${TRAVIS_PHP_VERSION}" == "7.4" ]]; then ./build.sh ${TRAVIS_TAG#?} ; fi + - if [[ ! -z ${TRAVIS_TAG} && "${TRAVIS_PHP_VERSION}" == "7.4" ]]; then ./build.sh ${TRAVIS_TAG#?} ; fi deploy: - provider: releases @@ -62,5 +62,5 @@ deploy: script: bash ./docker/build on: all_branches: true - condition: $TRAVIS_PULL_REQUEST == 'false' + condition: "${TRAVIS_PULL_REQUEST}" == 'false' php: '7.4'