This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
74 lines (68 loc) · 2.43 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
# yamllint disable rule:line-length
sudo: true
addons:
apt:
packages:
- docker-ce
- python
- make
- realpath
- ruby
env:
global:
- OPERATOR_IMAGE="gluster/gluster-subvol-operator"
- PLUGIN_IMAGE="gluster/gluster-subvol-plugin"
- RECYCLER_IMAGE="gluster/gluster-subvol-volrecycler"
jobs:
include:
- name: Operator
install:
- travis_retry make install-operator-sdk
script:
- make subvol-operator
deploy:
# Master branch will push the container to :latest
- provider: script
on: # yamllint disable-line rule:truthy
branch: master
script: .travis/push_container.sh ${OPERATOR_IMAGE} verbatim latest
# Tags of the form v + SEMVER (e.g., v1.2.3) will push to the
# corresponding container version number (e.g., :1.2.3).
- provider: script
on: # yamllint disable-line rule:truthy
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]+
script: .travis/push_container.sh ${OPERATOR_IMAGE} version "$TRAVIS_TAG"
- name: Flexvol Plugin
script:
- make subvol-plugin
deploy:
# Master branch will push the container to :latest
- provider: script
on: # yamllint disable-line rule:truthy
branch: master
script: .travis/push_container.sh ${PLUGIN_IMAGE} verbatim latest
# Tags of the form v + SEMVER (e.g., v1.2.3) will push to the
# corresponding container version number (e.g., :1.2.3).
- provider: script
on: # yamllint disable-line rule:truthy
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]+
script: .travis/push_container.sh ${PLUGIN_IMAGE} version "$TRAVIS_TAG"
- name: Recycler
script:
- make subvol-volrecycler
deploy:
# Master branch will push the container to :latest
- provider: script
on: # yamllint disable-line rule:truthy
branch: master
script: .travis/push_container.sh ${RECYCLER_IMAGE} verbatim latest
# Tags of the form v + SEMVER (e.g., v1.2.3) will push to the
# corresponding container version number (e.g., :1.2.3).
- provider: script
on: # yamllint disable-line rule:truthy
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]+
script: .travis/push_container.sh ${RECYCLER_IMAGE} version "$TRAVIS_TAG"