-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
23 lines (23 loc) · 2.57 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
services:
- docker
language: minimal
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
- secure: dJHkP1kk6qnL3FXRrsFf8hRbMWxMGZ47rmOQWcKB3WZaxYlB9IjU7QOnayNYyP+/fC24kBYPg1ApSURZFhX87oNhsUEc0Cm9NfAk73oSrY6i4BZtKNM2xcEVY687XzFnGN/Qbh1RpGRYv8oxHpI8GT+NaIQNyhxySoQFvFKvY3u8tR6hiN/khQCZ/n9HzWqBrCN619yLySUovLX7XV9M/MdsuXDHah6hbDUmvWm4b5UoWsEn2BU8cj/nKy3PRD4AIm+ONq2iEcZk9/xzjUTELQuHA9XlR0Ue6+kfRarHIy1b3UPnMdj6hEhEgOZZCJMm9Z0y447anAVIak7Rt//B1sD8qhrCma7XPKEcHByPsmb7Bqq68kUStN2w54P6XKNB7VYfo+aD+qfWQLR8JLTjEcImzWyOBk1cDedSZjPlEZA3T6YBXyZiBTM1nMdzfqkVbcVq9N5x3ai4W3U5jBteX6WZinV+FgPEC7d//s+gNYWPJ8OWX6NXuHodJ34Z3T+OH7ob6wEzgLZ+hcDj2aBvO6Fu28BHi3j1Wvhi5lgjE4frWISJjg8BUqUtr/lNj02vx1Bgm3qDJEe4snVOpUTV6aBSH+sHsa8mX+txJ2ke2GFhGLImhxp1WZZhntZmSmUS0mcNSuXBR1FGSdeP8IqCzMbr6c5PJ7XohTkQ/cQcCak=
- secure: Stg5jYDuPIi1gnkZY9BIrS93whruyiBBst6xHaBUeTD4igKO3ulSJpMbtFPNrcQ7G2VnauFCsCTlEfnYvsSsOLdu7nEHI7yNnCCJbpLTyP/ipqLvbQfYg4Gw05P5SUCoao7Pr8ZzeDyoU8sdjG1cH7iQRUr9ksKE2sPvtgPCW23HPXeOk+Y+jCFy32X4k0mDOMaZ0RXCh6spQ37V6B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YjqQhX3bhQIwbXOmVsh7Try6pGOEVhZp09s8VJA3PVYdLtWgsVexNZRIZd5UDKbNPHa1TOR3Ejb2HmM=
script:
- export REPO=xtradio/xtradio.org
- 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
after_success:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker push $REPO:$TAG
- docker push $REPO:$COMMIT