-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
28 lines (25 loc) · 2.37 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
sudo: required
services:
- docker
env:
matrix:
- BUILDFOLDER=rokku-dev-apache-ranger
- BUILDFOLDER=rokku-dev-apache-ranger-postgres
global:
- secure: KOuE7iNC5m+tVgYgxr/xOS1tbwVirQtCoQ+L/HlzejtUX7yJSesuxAW/nsHrBE8asUo6Jo/dCeqDelAHm0qv1FJCVkIWMWDQuiiZF/5JWqfGd8MsjRozi9tl+TZsTtm16bsSTw9/nhIFt2SmN68eIwpQAgNb2d7b+dxJgITrbDEcSLjc4XZE4U5wAuPZEI28l0uyltE3zffouFGlJgfvWkZ0wvdxPZ54wQ0p8ECt0FgdKAOACyySNcCUbKvI6s6ABKhWivqWlAEsAKNcdXACvLIsJN5O421MylGSU1MyGDs6Jepi4364SvOWXwo1k1M7v2gWIfhkRxZPISgLderIxNcn8wLItc4kgy298Bh+ZDw7dsXd7qrPvh9aPZKM8ZR0SOuVFt7w7SWf8y0UWF4lTkeMmnvXOoI0zDqz0pCMs4iNteI14BuCDTcFGPRqd3eOc7f6HDTltyNuQPit8SXS/ruwZTiVzlzt4KnqEjvDX9LZ/M6opPt2Zxwol+P1iOkw91toGz8zlSzFWsS18FDzGXF6bgrOsxmQoUdvRUbAlFygyEyVIGtrGm/ZPdBzz61gouLdcpLCgnkUvf9xVn0ktuNPyRVsJVuNOkEM3pKf5znEqKXN8GntBY8xn/Sabkq2Ajdd7dBJjFZgQjEgk/4nFdF5UAs9pvyhCoHFDKyXW8A=
- secure: MFSw/ZwJYqxMWyIRRBM1JIbErGCJs1yxgoSC/0CyX9w6yluvXEUiayaQ1JhRtLJTvA/IbKw5IS4lKEJrH85SZMJKfoeDmWohz9bN+vct+he3ipyjXX2ItmAxAn4bUxCjgm9NsFifAbVizYobSbLClsptV5AGgXsm1A2JK3J3ClOUSunyuim3NlK3vVQyQ8WvTMSCxdbsdv3gRFI1TZmR/MAlOrFMgpYm0Oh86Ik8xYz2LB1r2TOwIlPU/E+c0z2Lil5L46nMqQDD7EFApG4I+Gr/mrFA1qqqVKl0WpfG/rRvWi05baVznml87Ll8rRj9SS8XNzUd863qQ/t6zuq7366Uczuydc0BklkSPJ4O4kC5WUzGLqiTLgUay30RSsmb8Wd7VJ5MJa5v21Z7mZIOLFdChuUHnIfbycT4yp60sVNzAQzb/NfybHYniUtW/H649ASlf1ryzjfRJJi3Bt8TnoFaXMVKOp3D+wJGNhQyZ4T9WF5NE9Jv67Fc9ZEwikJJMRedRaC+R8YD+Gb0dpPqQDBb6JZRo374EgnRGEexP+UqN2Ag0gxtlIXLDc3iHMzYZiHWl4ZtTPlZTP7A2+UVCI4Zgjza1Yzw9uOBfaViu66/Syj+91Dkovl9jtb5CPaU9vuebugocT1vcHovZ5SGTuyKOWYmONUJNP6/Fml48Yc=
# We will not build an image on the master tag, thereby forcing people to use tagged versions only
# Also there is an issue with using TRAVIS_BRANCH for PRs since this variable will be set to the target of the PR (e.g. master for PR to master) and then build an image for master unwanted before the merge happened
script:
- echo "Running pipeline for branch ${TRAVIS_BRANCH}"
- cd $BUILDFOLDER
- if [ -n "$TRAVIS_TAG" ]; then
export DOCKER_TAG="${TRAVIS_BRANCH/\//_}";
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
echo "Build image for tag ${DOCKER_TAG}";
docker pull wbaa/$BUILDFOLDER:latest;
travis_wait 60 docker build --quiet -t wbaa/$BUILDFOLDER:$DOCKER_TAG .;
docker push wbaa/$BUILDFOLDER:$DOCKER_TAG;
docker tag wbaa/$BUILDFOLDER:$DOCKER_TAG wbaa/$BUILDFOLDER:latest;
docker push wbaa/$BUILDFOLDER:latest;
fi