-
Notifications
You must be signed in to change notification settings - Fork 30
/
.travis.yml
42 lines (40 loc) · 1.11 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
---
sudo: true
addons:
apt:
packages:
- docker-ce
- python
- realpath
- ruby
jobs:
include:
- name: Linter
install:
- gem install asciidoctor mdl
- pip install --user --upgrade pip
- pip install --user yamllint
script:
- scripts/lint-text.sh --require-all
- name: glusterfs-csi-driver
script:
- ./build.sh glusterfs
deploy:
# Master branch will push the container to :latest
- provider: script
on: # yamllint disable-line rule:truthy
branch: master
script: >-
.travis/push_container.sh
gluster/glusterfs-csi-driver
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
gluster/glusterfs-csi-driver
version "$TRAVIS_TAG"