2016-11-14 17:41:12 +01:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
|
2018-01-23 17:00:06 +01:00
|
|
|
git:
|
|
|
|
depth: false
|
|
|
|
|
2016-11-14 17:41:12 +01:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2016-02-19 12:58:06 +01:00
|
|
|
env:
|
2016-04-06 15:28:25 +02:00
|
|
|
global:
|
2019-08-11 12:20:53 +02:00
|
|
|
- REPO=$TRAVIS_REPO_SLUG
|
|
|
|
- VERSION=$TRAVIS_TAG
|
2020-12-16 16:42:04 +01:00
|
|
|
- CODENAME=livarot
|
2019-08-11 12:20:53 +02:00
|
|
|
- GO111MODULE=on
|
2016-11-14 17:41:12 +01:00
|
|
|
|
2017-05-04 09:31:39 +02:00
|
|
|
script:
|
2017-05-12 16:14:45 +02:00
|
|
|
- echo "Skipping tests... (Tests are executed on SemaphoreCI)"
|
2019-02-26 05:50:07 -08:00
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then make docs; fi
|
2017-05-12 16:14:45 +02:00
|
|
|
|
2017-04-11 20:47:25 +02:00
|
|
|
before_deploy:
|
2017-05-05 14:17:08 +02:00
|
|
|
- >
|
|
|
|
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
|
|
|
|
export BEFORE_DEPLOY_RUN=1;
|
2017-05-12 16:14:45 +02:00
|
|
|
sudo -E apt-get -yq update;
|
2017-06-27 22:56:19 +02:00
|
|
|
sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install docker-ce=${DOCKER_VERSION}*;
|
2017-05-12 16:14:45 +02:00
|
|
|
docker version;
|
2021-01-06 17:58:04 +01:00
|
|
|
echo "${DOCKERHUB_PASSWORD}" | docker login -u "${DOCKERHUB_USERNAME}" --password-stdin;
|
2019-03-28 11:42:06 +01:00
|
|
|
make build-image;
|
2018-01-23 17:00:06 +01:00
|
|
|
if [ "$TRAVIS_TAG" ]; then
|
2019-03-14 16:22:04 +01:00
|
|
|
make release-packages;
|
2018-01-23 17:00:06 +01:00
|
|
|
fi;
|
2017-05-05 14:17:08 +02:00
|
|
|
fi
|
2019-03-14 16:22:04 +01:00
|
|
|
|
2017-02-02 10:58:42 +01:00
|
|
|
deploy:
|
|
|
|
- provider: releases
|
|
|
|
api_key: ${GITHUB_TOKEN}
|
|
|
|
file: dist/traefik*
|
|
|
|
skip_cleanup: true
|
|
|
|
file_glob: true
|
|
|
|
on:
|
2020-09-16 15:46:04 +02:00
|
|
|
repo: traefik/traefik
|
2017-02-02 10:58:42 +01:00
|
|
|
tags: true
|
|
|
|
- provider: script
|
2017-02-02 15:25:26 +01:00
|
|
|
script: sh script/deploy.sh
|
2017-02-02 13:59:28 +01:00
|
|
|
skip_cleanup: true
|
2017-02-02 10:58:42 +01:00
|
|
|
on:
|
2020-09-16 15:46:04 +02:00
|
|
|
repo: traefik/traefik
|
2017-02-02 10:58:42 +01:00
|
|
|
tags: true
|
2021-01-15 13:06:04 +01:00
|
|
|
|