forked from node-red/node-red-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
49 lines (44 loc) · 2.21 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
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 latest/Dockerfile -t nodered/node-red-docker:v10 --build-arg NODE_VERSION=10 .
- docker build -f slim/Dockerfile -t nodered/node-red-docker:slim .
- docker build -f slim/Dockerfile -t nodered/node-red-docker:slim-v10 --build-arg NODE_VERSION=10 .
- docker build -f rpi/Dockerfile -t nodered/node-red-docker:rpi .
- docker build -f rpi/Dockerfile -t nodered/node-red-docker:rpi-v10 --build-arg NODE_VERSION=10 .
- docker tag nodered/node-red-docker nodered/node-red-docker:$VERSION
- docker tag nodered/node-red-docker nodered/node-red-docker:v8
- docker tag nodered/node-red-docker nodered/node-red-docker:$VERSION-v8
- docker tag nodered/node-red-docker:v10 nodered/node-red-docker:$VERSION-v10
- docker tag nodered/node-red-docker:slim nodered/node-red-docker:$VERSION-slim
- docker tag nodered/node-red-docker:slim nodered/node-red-docker:slim-v8
- docker tag nodered/node-red-docker:slim nodered/node-red-docker:$VERSION-slim-v8
- docker tag nodered/node-red-docker:slim-v10 nodered/node-red-docker:$VERSION-slim-v10
- docker tag nodered/node-red-docker:rpi nodered/node-red-docker:$VERSION-rpi
- docker tag nodered/node-red-docker:rpi nodered/node-red-docker:rpi-v8
- docker tag nodered/node-red-docker:rpi nodered/node-red-docker:$VERSION-rpi-v8
- docker tag nodered/node-red-docker:rpi-v10 nodered/node-red-docker:$VERSION-rpi-v10
script:
- docker run -d nodered/node-red-docker:latest
- docker ps | grep latest
- docker run -d nodered/node-red-docker:v10
- docker ps | grep v10
- docker run -d nodered/node-red-docker:slim
- docker ps | grep slim
- docker run -d nodered/node-red-docker:slim-v10
- docker ps | grep slim-v10
- docker run -d nodered/node-red-docker:rpi
- docker ps | grep rpi
- docker run -d nodered/node-red-docker:rpi-v10
- docker ps | grep rpi-v10
after_success:
- if [ -n "$TRAVIS_TAG" ]; then
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
docker push nodered/node-red-docker;
fi