1
0
mirror of https://github.com/containous/traefik.git synced 2025-01-11 05:17:52 +03:00
traefik/.travis.yml

51 lines
1.1 KiB
YAML
Raw Normal View History

2016-11-14 19:41:12 +03:00
sudo: required
dist: trusty
git:
depth: false
2016-11-14 19:41:12 +03:00
services:
- docker
env:
global:
- REPO=$TRAVIS_REPO_SLUG
- VERSION=$TRAVIS_TAG
2020-12-16 18:42:04 +03:00
- CODENAME=livarot
- GO111MODULE=on
2016-11-14 19:41:12 +03:00
script:
- echo "Skipping tests... (Tests are executed on SemaphoreCI)"
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then make docs; fi
before_deploy:
- >
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
export BEFORE_DEPLOY_RUN=1;
sudo -E apt-get -yq update;
2017-06-27 23:56:19 +03:00
sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install docker-ce=${DOCKER_VERSION}*;
docker version;
2021-01-06 19:58:04 +03:00
echo "${DOCKERHUB_PASSWORD}" | docker login -u "${DOCKERHUB_USERNAME}" --password-stdin;
2019-03-28 13:42:06 +03:00
make build-image;
if [ "$TRAVIS_TAG" ]; then
2019-03-14 18:22:04 +03:00
make release-packages;
fi;
fi
2019-03-14 18:22:04 +03: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