mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-25 10:20:18 -06:00
Removed docker image building on non-PR builds
This commit is contained in:
parent
135b62a9cc
commit
65e6676c00
@ -35,7 +35,7 @@ before_script:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- composer ci
|
- 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:
|
after_success:
|
||||||
- rm -f build/clover.xml
|
- rm -f build/clover.xml
|
||||||
@ -47,7 +47,7 @@ after_success:
|
|||||||
# Before deploying, build dist file for current travis tag
|
# Before deploying, build dist file for current travis tag
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- rm -f ocular.phar
|
- 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:
|
deploy:
|
||||||
- provider: releases
|
- provider: releases
|
||||||
@ -62,5 +62,5 @@ deploy:
|
|||||||
script: bash ./docker/build
|
script: bash ./docker/build
|
||||||
on:
|
on:
|
||||||
all_branches: true
|
all_branches: true
|
||||||
condition: $TRAVIS_PULL_REQUEST == 'false'
|
condition: "${TRAVIS_PULL_REQUEST}" == 'false'
|
||||||
php: '7.4'
|
php: '7.4'
|
||||||
|
Loading…
Reference in New Issue
Block a user