-
Notifications
You must be signed in to change notification settings - Fork 68
/
.travis.yml
150 lines (136 loc) · 3.97 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
dist: focal
services:
- docker
stages:
- name: build_release_arm64
if: type != pull_request AND tag IS present
- name: build_release_amd64
if: type != pull_request AND tag IS present
- name: build_release_ppc64le
if: type != pull_request AND tag IS present
- name: push_release_multiarch
if: type != pull_request AND tag IS present
- name: build_pr_arm64
if: type = pull_request
- name: build_pr_amd64
if: type = pull_request
- name: build_pr_ppc64le
if: type = pull_request
- name: build_latest_arm64
if: type != pull_request AND branch = master
- name: build_latest_amd64
if: type != pull_request AND branch = master
- name: build_latest_ppc64le
if: type != pull_request AND branch = master
- name: push_latest_multiarch
if: type != pull_request AND branch = master
matrix:
include:
# release stages
- stage: build_release_arm64
services:
- docker
os: linux
arch: arm64
env:
- COMMON_IMAGE_TAG=${TRAVIS_TAG}
- DOCKER_REGISTRY=quay.io/datashim-io
install: echo "no install"
script: cd build-tools && ./build_components.sh && ./build_csi_plugins.sh
- stage: build_release_amd64
services:
- docker
os: linux
arch: amd64
dist: bionic
env:
- COMMON_IMAGE_TAG=${TRAVIS_TAG}
- DOCKER_REGISTRY=quay.io/datashim
install: echo "no install"
script: cd build-tools && ./build_components.sh && ./build_csi_plugins.sh
- stage: build_release_ppc64le
services:
- docker
os: linux
arch: ppc64le
env:
- COMMON_IMAGE_TAG=${TRAVIS_TAG}
- DOCKER_REGISTRY=quay.io/datashim-io
install: echo "no install"
script: cd build-tools && ./build_components.sh && ./build_csi_plugins.sh
- stage: push_release_multiarch
services:
- docker
os: linux
env:
- DOCKER_REGISTRY=quay.io/datashim-io
script:
- cd build-tools
- make DOCKER_REGISTRY=${DOCKER_REGISTRY} push-multiarch
# pull request stages
- stage: build_pr_arm64
services:
- docker
os: linux
arch: arm64
env:
- COMMON_IMAGE_TAG="pr_${TRAVIS_COMMIT}"
install: echo "no install"
script: cd build-tools && ./build_components.sh && ./build_csi_plugins.sh
- stage: build_pr_amd64
services:
- docker
os: linux
arch: amd64
dist: bionic
env:
- COMMON_IMAGE_TAG="pr_${TRAVIS_COMMIT}"
install: echo "no install"
script: cd build-tools && ./build_components.sh && ./build_csi_plugins.sh
- stage: build_pr_ppc64le
services:
- docker
os: linux
arch: ppc64le
env:
- COMMON_IMAGE_TAG="pr_${TRAVIS_COMMIT}"
install: echo "no install"
script: cd build-tools && ./build_components.sh && ./build_csi_plugins.sh
# master branch stages
- stage: build_latest_arm64
services:
- docker
os: linux
arch: arm64
env:
- DOCKER_REGISTRY=quay.io/datashim-io
install: echo "no install"
script: cd build-tools && ./build_components.sh && ./build_csi_plugins.sh
- stage: build_latest_amd64
services:
- docker
os: linux
arch: amd64
dist: bionic
env:
- DOCKER_REGISTRY=quay.io/datashim-io
install: echo "no install"
script: cd build-tools && ./build_components.sh && ./build_csi_plugins.sh
- stage: build_latest_ppc64le
services:
- docker
os: linux
arch: ppc64le
env:
- DOCKER_REGISTRY=quay.io/datashim-io
install: echo "no install"
script: cd build-tools && ./build_components.sh && ./build_csi_plugins.sh
- stage: push_latest_multiarch
services:
- docker
os: linux
env:
- DOCKER_REGISTRY=quay.io/datashim-io
script:
- cd build-tools
- make DOCKER_REGISTRY=${DOCKER_REGISTRY} push-multiarch