-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (35 loc) · 1.52 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
sudo: true
dist: trusty
language: go
go:
- '1.9'
jobs:
include:
- stage: compile go app
script:
- go get github.com/tools/godep
- export PATH=$PATH:$HOME/gopath/bin
- godep restore
- go get -d -v ./...
- go build -v
- stage: build docker image
script:
- go get github.com/tools/godep
- export PATH=$PATH:$HOME/gopath/bin
- godep restore
- go get -d -v ./...
- go build -v
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker build -t vice-worker:latest .
- docker tag vice-worker:latest viceregistry/vice-worker:latest
- docker images
- docker push viceregistry/vice-worker:latest
deploy:
provider: releases
api_key:
secure: jctOjfd/8+8+7GUubcJHhYijS0mV7VGbdXGjt+uH1Azq1AnAxiqSfKtvNQ9qxKFuexcmTQzk6MZohsUZc5anmbPP/OzaO08JrmeR+PFyKINPqq3nqkI1uaADx/TUvUWrDJMZWgtMuypY11Q+ICfjaOko6gKOOWgS8LvU5cn1RTZcJx2LULD1t0lG+fLBoBcLsNgQhQHO6+gk+kClwo5F4fKRGHdyYBjNQs/z+08mi1bVurq9UhzQFeAviu4bTODZhKfzxu3EU3Jbl7HvmYwQ21O8yPyyMdfQgDO1FODlDh6bD0DvUMQQIAiKS3o6fJKQ9SqJSRfHo/C1lb5lhb1jd8cd3+JkI/4Y7wCA4zuW/AOQyX3MxIPyST+eDUQxWpEQCS16piYpzD8fz9YfU8hBnab3evjw+h7wkJ5S+F3oMM7oWqNfXD7EkMW/cGCtVWByxzOeAfnNWBhTP7UZWINwZHCOitpzUj2FikBToegkPiNljJejRtTYxnFWLclX70ht4VfK6UIbHxdr3dOADQ4B1C+D5woc6BeUC9p0TZOHhrca0mcvCpvuDZ+j6XricLS9etCNPlBJuZyMAcZi/azehfBH6C771d4JjfYTxLcmj4pMri9irbuThtzq2eMVheAm3ZLTnUR326bmOkwqUfYoGZOoZQFGK4GmRxzlOFxfzss=
file: vice-worker
skip_cleanup: true
on:
repo: vice-registry/vice-worker
tags: true