forked from jippi/hashi-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·38 lines (31 loc) · 3.08 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
sudo: required
language: go
go:
- tip
services:
- docker
env:
global:
- GOBUILD="linux-amd64 windows-amd64 darwin-amd64"
- secure: ZoRhnYeFjmUfbA6AV4heBts2BQROh7m6Uo0QSHxeDwHs8X1GPC9nrPm+Lf9mHqd55DWlvuqllrbx4YxhF3xreT3z2WGloNeV893rlE12H88oIS5ZQczzvmPcM4X/diMx0yFQV4yTl87pk/XJDSaOLfi3SO2kntc9fsD281Ep026wRR1qnjxoorIoI5E+mGrSsEZwFJcO7lQUcWcWy0aNbt0q9Q0ww6mSJvvINvDH7HSPvpNumH3ys5aE7VhO8GapBGk2/zjumJ/+J65BTS8wFATWC3QuCgLsi/8u1IE3xYWkIdK2J/pNHPwj/LqYYoE2bSwdSAnlDJpDAqhgEsKZGFcebmlqK902VzydGpjxZlo20NLce+VA350H1wOB2hdMmoqogEOtWqYnKhn7OEIz0Wvdom3JII0hxSQZEiK1QCa/beaElhzPeJyE1zxHXuXkwtAFaoRL4pCzE/rsjdU+KIWf98dZL5iOb1xxkdMVIey9jnqC/zRm4kS8zkX4urvZb2sqiOa6HuAM/PSfVe8XpEG4gKKJEYTHyKLJo+KSKAeZ/60qS1mjQGcB1++8VMYl2jf37y0Fos3XdA/TmeKI1jrKzyXsBN2syOpGQktGZjC9iNIRtxwo2YzKSJ3nqAb3lzwouPFWl4PTraEVvxxYTDrDvDmIu/D9mPYYofnYyGQ=
- secure: WKgIAG4xTouNdj27m5FR9KkNEOQrVTntwB+5KPGdlG1rwSvH4s55xswx1r6XWxj1HFlPipcKV49t1D7wBRDPrUllUU08QqCpjH7MqlSJEW1ch89H10hGqqmLEVQrHFk4ft2GEGrjD60cz8Y8xuo+vlF7JEcjva8kSWu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uchbnjteSNlpRXcYu/OK619utHJd6xSpHM+uEdZO8NZNwSlQDTGTZvIFro3t8aQsIsNaPFg9MQ7wj1kR7epwTA7b7Ly1tB3Rrvwa2f5Sh9GXzsZTryjr+03veYcuJHnGt7spA=
script:
- GOBUILD=${GOBUILD} make build
- ls -la backend/build
after_success:
- export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
- if [[ "$TRAVIS_TAG" =~ ^v.*$ ]]; then make docker DOCKER_USER=$DOCKER_USER DOCKER_PASS=$DOCKER_PASS DOCKER_EMAIL=$DOCKER_EMAIL TAG=$TRAVIS_TAG COMMIT=$TRAVIS_COMMIT; fi
- if [[ "$BRANCH" == "master" ]]; then make docker DOCKER_USER=$DOCKER_USER DOCKER_PASS=$DOCKER_PASS DOCKER_EMAIL=$DOCKER_EMAIL TAG=latest COMMIT=$TRAVIS_COMMIT; fi
deploy:
- provider: releases
api_key: ${GITHUB_API_KEY}
file:
- backend/build/nomad-ui-linux-amd64
- backend/build/nomad-ui-windows-amd64
- backend/build/nomad-ui-darwin-amd64
skip_cleanup: true
overwrite: true
on:
tags: true