This repository has been archived by the owner on Oct 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 329
/
.travis.yml
58 lines (49 loc) · 2.32 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Trusty Beta requires sudo per https://docs.travis-ci.com/user/ci-environment/
sudo: required
dist: trusty
services:
- docker
# We don't actually use anything java, but this feels the least jarring "language"
language: java
# Even though this shouldn't be needed, one build failed because of SSH known hosts:
# https://travis-ci.org/openzipkin/docker-zipkin/builds/78704161
addons:
ssh_known_hosts: github.com
# Special tags are used to trigger these Travis CI runs
branches:
only:
- /^release-.*$/
# jq is used in release.sh to parse the responses of the quay.io API
install:
- sudo wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 -O /usr/local/bin/jq
- sudo chmod o+x /usr/local/bin/jq
before_script:
# The release process pushes to GitHub multiple times; will use these credentials
- openssl aes-256-cbc -K $encrypted_1f60458c9a9e_key -iv $encrypted_1f60458c9a9e_iv -in .travis/deploy_key.enc -out .travis/deploy_key -d
- chmod 600 .travis/deploy_key
- eval "$(ssh-agent)"
- ssh-add .travis/deploy_key
# We also need to use a write-able git remote
- git remote set-url origin "[email protected]:openzipkin/docker-zipkin.git"
# Log in to Docker Hub, needed to mirror images built on quay.io
- docker login -u dockerzipkindeployer -p "$DOCKERHUB_PASSWORD"
# So git doesn't die trying to figure out Travis' email address
- git config user.name "dockerzipkindeployer"
- git config user.email "[email protected]"
script:
# Also known as doit.sh
- ./release.sh $TRAVIS_TAG
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/ead3c37d57527214e9f2
- https://webhooks.gitter.im/e/e57478303f87ecd7bffc
on_success: change
on_failure: always
env:
global:
# The release process syncs minor and major version tags to the newly built subminor version tag
# via the quay.io API, using these credentials.
- secure: "acmhzKdohRCGlYnUISPlA2uXOeq+YhKJrLCr8wH9sQmb4mX+IuxxidxTxcqpKPD/Mi5YbAvVVPbWU5F763EAPkbMgI2Gk0HObdRSNyx0yrJ4aTBGuQRCz1Wmd7UFoILm4w+XWcZTnd3xXguEFliqYxjNoIuhCF21A6xEFpJotgs="
# The release process pushes images to Docker Hub, using these credentials
- secure: "c6OUybEaMzU5aBtl9sNAyV60j4VqxPWMxvmpk8VUQmKz1qRXh/3BOVNTvBCrWQHa/rzhMOxSPQZes01ZNcYMo3XykQOcNf6hwqcobeAMkK6Ji0eaw4sOJ1IVneUI1SvseewD53KOa3hrrlY2wI1cR6SJO+5G7TSuhfZiQ9wMS7E="