-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (28 loc) · 831 Bytes
/
.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
# SOURCE https://github.com/hypriot/rpi-mysql
sudo: required
#services:
#- docker
addons:
apt:
packages:
- docker-ce
language: bash
script:
# build image
- docker build -t nename0/rpi-docker-nginx-boringssl .
# prepare qemu
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
# test image
- docker run nename0/rpi-docker-nginx-boringssl nginx -V
# push image
- >
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
TAG=$(grep "ARG NGINX_VERSION=" Dockerfile | cut -d\= -f2)
docker tag nename0/rpi-docker-nginx-boringssl nename0/rpi-docker-nginx-boringssl:$TAG
docker push nename0/rpi-docker-nginx-boringssl:$TAG
docker push nename0/rpi-docker-nginx-boringssl
fi
branches:
only:
- master