traefik/.travis.yml

50 lines
1 KiB
YAML
Raw Normal View History

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