-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (29 loc) · 2.81 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
language: minimal
sudo: false
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
- secure: BSbN8AnMWFdmjSNMe16twV0TJ6gjWGU3mKwsiexQf5XOJGHBNou+ImwyNRmD+/BITrwjcQk1NNFUgevqDl83nTLHZ23bS7akevQ11FGIG02MJ7FYrc39EfO2gBmJpq8K0ONH2BqsKG6itIYyu1bwklbWPdHlx+mFl8JZh7cTkZt2nu8ZOuBkkKk95mN91oaB3OwCS6sQvjDZbP83JKbVH45QFalXLwXIJYLvG/7L8L3gxo3tZQG6jbb+z12ap2crG+RibNwLp6WaHntLCsnl3ZjnlXa9WW37v41lPhulpmbfrPzsVQ0bP1eKcW4nNc9Sd6hTAEI30RhZfl1aLSwZ/yLOy1jFt03DCkUv8gMZ/YlgIVb96h3m4JIK6SjjECcBPtxVlxo828JirNt6wJERqSR+BM3YtSgeBzqO8PAilZtAdh9/z09C1H74WJYKkbvBZN4pSL1DTESFKFpByS1mlztABrQ8cNnCIrryBit+cD1h7mh1UXuy4Fjdlimav0Z9Ix2UHmXnFNKjDhc/Jv8w4oz7H6uYLlyQ8A+8LcOQ7LOpkp5//XFg4hA4Gznrd/qsgFhizxKuXVUmvLIYP1CCY6kWuBnlR7Hk71cKpEwAEB6GgpnMzjAvNxZOueYcVqRvI53/u9VDBBgnYuMkMoZmEI0T+IhfF3xpQhNyShccxOg=
- secure: dXucHYzK+LTqVrbwY8SZofG+0HHIP2TWddvzKzxHFmbc9bIrKjw8r2Zb5X8cQdY/I/OJZEkUm+Ej+xKmeR7AA0LnljXUdZBCS4k9N7rnA/bUl63WRpwOwW8pL7SGvWFbLrWfliwljKW3YeMj536VyR8MUBEXMV3CJopIOtGYG/wxzZKwQ/qfwdGAPSLCrdyQX74Uu8UFGxix+UlVkyZ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Amtrf5pg6s3xznxxvLV6vYehw2xzR3wkQheBRvbpkNhRSyveeheb6J/ZMZ+8f0NSP6Ey6cfgiEvxvUIRohp81ck4=
script:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- export REPO=gicmadev/pof.pm
- 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 tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
before_deploy:
- eval "$(ssh-agent -s)"
- openssl aes-256-cbc -K $encrypted_3e35467c1c54_key -iv $encrypted_3e35467c1c54_iv
-in .deploy_key.enc -out /tmp/deploy_key -d
- chmod 600 /tmp/deploy_key
- ssh-add /tmp/deploy_key
- ssh-keyscan "$SERVER" >> ~/.ssh/known_hosts
deploy:
- provider: script
script: "./deploy.sh"
on:
branch: master