-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
121 lines (102 loc) · 5.03 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
sudo: required
language: generic
services:
- docker
env:
global:
- DOCKER_BUILD_OPTION="--force-rm --no-cache --pull"
before_install:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
jobs:
include:
- stage: build docker image
if: type != cron
env: BASEIMG=centos7_dev TAG=latest
script:
- travis_wait 50 docker build -t gwangmin/base:$TAG -f dockerfiles/base --build-arg BASEIMG=$BASEIMG --build-arg CFLAGS="-march=core2 -mtune=core-avx2 -O2" $DOCKER_BUILD_OPTION .
- docker push gwangmin/base:$TAG
- stage: build docker image
if: type != cron
env: BASEIMG=centos7_gcc5 TAG=gcc5
script:
- travis_wait 50 docker build -t gwangmin/base:$TAG -f dockerfiles/base --build-arg BASEIMG=$BASEIMG $DOCKER_BUILD_OPTION .
- docker push gwangmin/base:$TAG
- stage: build docker image
if: type != cron
env: BASEIMG=centos7_gcc7 TAG=gcc7
script:
- travis_wait 50 docker build -t gwangmin/base:$TAG -f dockerfiles/base --build-arg BASEIMG=$BASEIMG $DOCKER_BUILD_OPTION .
- docker push gwangmin/base:$TAG
- stage: build docker image
if: type != cron
env: BASEIMG=centos7_gcc8 TAG=gcc8
script:
- travis_wait 50 docker build -t gwangmin/base:$TAG -f dockerfiles/base --build-arg BASEIMG=$BASEIMG $DOCKER_BUILD_OPTION .
- docker push gwangmin/base:$TAG
- stage: build docker image
if: type != cron
env: BASEIMG=centos7_clang TAG=clang
script:
- travis_wait 50 docker build -t gwangmin/base:$TAG -f dockerfiles/base --build-arg BASEIMG=$BASEIMG $DOCKER_BUILD_OPTION .
- docker push gwangmin/base:$TAG
- stage: build docker image
if: type != cron
env: BASEIMG=ubuntu_dev:bionic TAG=ubuntu
script:
- travis_wait 50 docker build -t gwangmin/base:$TAG -f dockerfiles/base --build-arg BASEIMG=$BASEIMG $DOCKER_BUILD_OPTION .
- docker push gwangmin/base:$TAG
- stage: build basic docker image
if: type = cron
env: DOCKERFILE_NAME=centos7_dev
script:
- docker build -t gwangmin/${DOCKERFILE_NAME}:latest -f dockerfiles/$DOCKERFILE_NAME $DOCKER_BUILD_OPTION .
- docker push gwangmin/${DOCKERFILE_NAME}:latest
- stage: build basic docker image
if: type = cron
env:
- DOCKERFILE_NAME=ubuntu_dev
- TAG=bionic
script:
- docker build -t gwangmin/ubuntu_dev:${TAG} -f dockerfiles/$DOCKERFILE_NAME --build-arg VERSION=${TAG} $DOCKER_BUILD_OPTION .
- docker push gwangmin/ubuntu_dev:${TAG}
- stage: build basic docker image
if: type = cron
env:
- DOCKERFILE_NAME=ubuntu_dev
- TAG=xenial
script:
- docker build -t gwangmin/ubuntu_dev:${TAG} -f dockerfiles/$DOCKERFILE_NAME --build-arg VERSION=${TAG} $DOCKER_BUILD_OPTION .
- docker push gwangmin/ubuntu_dev:${TAG}
- stage: build basic docker image
if: type = cron
env: DOCKERFILE_NAME=jenkins_did
script:
- docker build -t gwangmin/${DOCKERFILE_NAME}:latest -f dockerfiles/$DOCKERFILE_NAME $DOCKER_BUILD_OPTION .
- docker push gwangmin/${DOCKERFILE_NAME}:latest
- stage: build basic docker image
if: type = cron
env: DOCKERFILE_NAME=jenkins_slave_did
script:
- docker build -t gwangmin/${DOCKERFILE_NAME}:latest -f dockerfiles/$DOCKERFILE_NAME $DOCKER_BUILD_OPTION .
- docker push gwangmin/${DOCKERFILE_NAME}:latest
- stage: build basic docker image
if: type = cron
env: DOCKERFILE_NAME=jenkins_kubernetes
script:
- docker build -t gwangmin/${DOCKERFILE_NAME}:latest -f dockerfiles/$DOCKERFILE_NAME $DOCKER_BUILD_OPTION .
- docker push gwangmin/${DOCKERFILE_NAME}:latest
- stage: build basic docker image
if: type = cron
env: DOCKERFILE_NAME=tensorflow_devel
script:
- docker build -t gwangmin/${DOCKERFILE_NAME}:cpu -f dockerfiles/$DOCKERFILE_NAME --build-arg TYPE=cpu $DOCKER_BUILD_OPTION .
- docker push gwangmin/${DOCKERFILE_NAME}:cpu
- stage: build basic docker image
if: type = cron
env: DOCKERFILE_NAME=tensorflow_devel
script:
- docker build -t gwangmin/${DOCKERFILE_NAME}:gpu -f dockerfiles/$DOCKERFILE_NAME --build-arg TYPE=gpu $DOCKER_BUILD_OPTION .
- docker push gwangmin/${DOCKERFILE_NAME}:gpu
notifications:
slack:
secure: SU91a1fKEwOf65eJjk2+hhh3XtGb/sf5Ka+4AAa9OTBDsYyNMKQnUmpHM/A4a0kKxz64UbzH8Vbj4HflekTCdCBkyuIaC093Krhc1QdrvkTJS2jz1WsBuwB8ZkwOhT3r7mN8F97pqJrB4kAF4V5hThU2hAFLtemDoGFd4VwLkdksYeLuxlerVK2UhIkHQ2i8cnxUDWiIel4r5qsjvKIUXSn2HT9MnkxooUHTp52QU2uF/y6buMOhS7YQmiOoHpvhVJsuZJjY54gXfhe3tXYFfZE2+8/FYO5qjKJIr/UXJe+tuOEB6VH7rQNpA3TeribvGF72dvlp2qqVY/4O+Lz9+2DqvDO/RH2PzKyDsRvlQKRd6tnLW6hPPa+PxQs4Qwi9Vz7wCqfsISZDVKLzQjXIFGpEPVzpevr2By1UO3wuMdqTPatJ0mTFtHODDsfmGYRs0qzJ+lGIhJ+k/WsFasigjHdLmFTEhZ5FyQWXOP8kpDtJLdl0z/X1S0XFPvXXmUWRrnXp4aP1xwZhKhJfVxDtjfcsaS2RR+qBkLc3eccJKn4XDd9pJezteGQXer5rR7m87HMXw+m/Qnl3LZ6NWhhaHnMJ7tal0allXpt0qofRx/BGbRJjve/3FxL2+sPbeFSqNZ2MTlnYyX8hTEPO/3T0gfhJ4NryIrrx+hF89onEGsI=