forked from node-red/node-red-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 1.06 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
sudo: required
language: generic
services:
- docker
before_install:
- source version.sh
- echo $VERSION
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker build -f latest/Dockerfile -t nodered/node-red-docker .
- docker build -f slim/Dockerfile -t nodered/node-red-docker:slim .
- docker build -f rpi/Dockerfile -t nodered/node-red-docker:rpi .
- docker tag nodered/node-red-docker nodered/node-red-docker:$VERSION
- docker tag nodered/node-red-docker:slim nodered/node-red-docker:$VERSION-slim
- docker tag nodered/node-red-docker:rpi nodered/node-red-docker:$VERSION-rpi
script:
- docker run -d nodered/node-red-docker:latest
- docker ps | grep latest
- docker run -d nodered/node-red-docker:slim
- docker ps | grep slim
- docker run -d nodered/node-red-docker:rpi
- docker ps | grep rpi
after_success:
- if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then
docker login -e "$DOCKER_EMAIL" -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
docker push nodered/node-red-docker;
fi