mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-28 04:22:04 +03:00
Going back to single travis job for docker image building
This commit is contained in:
parent
3c3a30cc0e
commit
17f3897746
2 changed files with 6 additions and 16 deletions
18
.travis.yml
18
.travis.yml
|
@ -7,29 +7,19 @@ branches:
|
||||||
- /.*/
|
- /.*/
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
- name: "Docker publish - linux/arm/v7"
|
- name: "Docker publish"
|
||||||
php: '7.4'
|
php: '7.4'
|
||||||
if: NOT type = pull_request
|
if: NOT type = pull_request
|
||||||
env:
|
env:
|
||||||
- DOCKER_PUBLISH="true"
|
- 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"
|
- name: "CI"
|
||||||
php: '7.4'
|
php: '7.4'
|
||||||
env:
|
env:
|
||||||
- DOCKER_PUBLISH="false"
|
- DOCKER_PUBLISH="false"
|
||||||
|
allow_failures:
|
||||||
|
- name: "Docker publish"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
|
@ -21,12 +21,12 @@ if [[ ! -z $TRAVIS_TAG ]]; then
|
||||||
|
|
||||||
docker buildx build --push \
|
docker buildx build --push \
|
||||||
--build-arg SHLINK_VERSION=${TRAVIS_TAG#?} \
|
--build-arg SHLINK_VERSION=${TRAVIS_TAG#?} \
|
||||||
--platform ${PLATFORM} \
|
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||||
${TAGS} .
|
${TAGS} .
|
||||||
|
|
||||||
# If build branch is develop, build latest (on master, when there's no tag, do not build anything)
|
# If build branch is develop, build latest (on master, when there's no tag, do not build anything)
|
||||||
elif [[ "$TRAVIS_BRANCH" == 'develop' ]]; then
|
elif [[ "$TRAVIS_BRANCH" == 'develop' ]]; then
|
||||||
docker buildx build --push \
|
docker buildx build --push \
|
||||||
--platform ${PLATFORM} \
|
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||||
-t shlinkio/shlink:latest .
|
-t shlinkio/shlink:latest .
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue