forked from jaegertracing/jaeger-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (37 loc) · 973 Bytes
/
.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
language: go
sudo: required
go:
- 1.11.1
stages:
- name: build
- name: deploy
# only deploy if:
## we are not in a PR
## tag is blank (ie, master or any other branch)
## tag is a release tag (release/v1.6.1, which is the release build)
if: (type != pull_request) AND ((tag IS blank) OR (tag =~ /^release\/v.[\d\.]+(\-.*)?$/))
jobs:
include:
- stage: build
env:
- OPERATOR_VERSION="JOB_${TRAVIS_JOB_NUMBER}"
name: "Build"
install:
- "./.travis/install.sh"
script:
- "./.travis/script.sh"
after_success:
- "./.travis/after_success.sh"
- stage: deploy
name: "Publish latest image"
env:
- OPERATOR_VERSION="${TRAVIS_BRANCH}"
script:
- "./.travis/publish-images.sh"
- stage: deploy
name: "Release"
env:
- OPERATOR_VERSION="${TRAVIS_BRANCH}"
script:
- "./.travis/release.sh"
if: tag =~ /^release\/v.[\d\.]+(\-.*)?$/