mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-03 12:46:59 -06:00
Separated docker builds in different platforms
This commit is contained in:
parent
75f5da5846
commit
726811f91f
15
.travis.yml
15
.travis.yml
@ -8,11 +8,24 @@ branches:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- name: "Docker publish"
|
- name: "Docker publish - linux/arm/v7"
|
||||||
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:
|
||||||
|
@ -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 linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
--platform ${PLATFORM} \
|
||||||
${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 linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
--platform ${PLATFORM} \
|
||||||
-t shlinkio/shlink:latest .
|
-t shlinkio/shlink:latest .
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user