-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (23 loc) · 2.71 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
services:
- docker
env:
global:
- secure: "G5AlVVN/2EQikhbEvEPDEbvDqHH2fBnTVT3xz7FQI4qfRYonTnuxaoda1wGpZcnNShPuOWF7h4CUlQFvNcZNSHDVuuaeyqtytLLe0ZV7LBdf1kSkQenVDnc4nXvtE98OaH9mzkxOLDcF8uetpP0YhWOBl6cMPlWasM3U4xqqEZ7Q3gHBl1JV2SMxjN6+ygVVmQ6cSZyoYRJwku9/A/LOd9Aed+u9mT4MIPS2m4YAQnaw6aY0dEZmOjJ+LRbrTder1GOubZ8Saandh01Wk3SCOo1KR3703Fqch66WQNqRRffWi/LxJGcu3ywbQFUS2xa4/7v18Dzn6UF8iDChbW6O2GplwvBNbzc8uPNAbvG6KOgprMyJL7zFJ8c4b/DYRoOcPXFJzc1KCTjcdAHElkTaOzCiHsz/ZmZSXOzIHo6u0gaIqKNoaGQ+hHTr6w9bNvp6YAPYDfU/6cGpIPihKbxe58yBdLEvHu6ie/5ycO4GAlJGiBoA+/+CIWYR7TCg8FL8tTDMpZBxKZNNmtkRMTUoC5lWIamH8vNHVZz71FfevHIWX5EZRSB2ykZHlJyhVx4F3HXNKx7avHmf2qpKtoxomHhnWQvXW7n3s2J4m4WD7kATW93J2E5W+q20V1XogbIi49IjYTOAOy/T+53fSq5dVrIZ+qN63ccn7YOsYMny8QE=" # DOCKER_EMAIL
- secure: "EGYIrDWxYR7Z/aiGd8C4iZps3PwyjAlG6OwevYYSZNbcWC+IM+BRTtIBZOoayBG9inKEqQ4aN5TNqsaX9TGZypaat3WTN1CP/9Gc2yRrEloXY7ZTx6MlL0+cjaFe1TgQc6IDKCnrP/5u+CH4VOrLedyJ/1lphuscowf1c7f8plUFs5LLNNhX4wpFr17WPr7oT6NS/34bRTIUaF4JIvsqmYe67Mr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QQxlzYCHo4UHKOLShivkCnt/ndXVGgkTgnqz3eStEq40oSrPsvg5KWY1kZ5+UZIDU=" # DOCKER_PASS
- COMMIT=${TRAVIS_COMMIT::8}
install:
- docker build -t bro .
- docker run -d --net=host -v /opt/bro/logs:/opt/bro/logs -v /opt/bro/spool:/opt/bro/spool --name bro bro
before_script:
- sleep 5
script:
- docker ps | grep -q bro
- ps -ea | grep -q bro
after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=dpisano/docker-bro
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- docker build -f Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker push $REPO:$TAG