-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
37 lines (32 loc) · 915 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
31
32
33
34
35
36
37
language: generic
dist: trusty
install:
- docker build -t ini-s-scanner .
- docker run -d -p 8080:8080 --name=ini-s-scanner ini-s-scanner
script:
- sleep 30s
- docker ps | grep -i ini-s-scanner
before_deploy:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
deploy:
- provider: script
skip_cleanup: true
on:
branch: develop
script: >-
docker tag ini-s-scanner siwecos/ini-s-scanner:develop &&
docker push siwecos/ini-s-scanner:develop
- provider: script
skip_cleanup: true
on:
branch: master
script: >-
docker tag ini-s-scanner siwecos/ini-s-scanner:latest &&
docker push siwecos/ini-s-scanner:latest
- provider: script
skip_cleanup: true
on:
tags: true
script: >-
docker tag ini-s-scanner siwecos/ini-s-scanner:$TRAVIS_TAG &&
docker push siwecos/ini-s-scanner:$TRAVIS_TAG