forked from claranet/nagitheus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (27 loc) · 834 Bytes
/
Copy path.travis.yml
File metadata and controls
30 lines (27 loc) · 834 Bytes
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
services:
- docker
go:
- master
jobs:
include:
- name: build and deploy binaries
script:
- go get github.com/mitchellh/gox
- go get -d
- gox -os="linux darwin windows" -arch="amd64" -verbose -output="bin/{{.Dir}}_{{.OS}}_{{.Arch}}"
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: "$GITHUBTOKEN"
file_glob: true
file: bin/*
on:
tags: true
- name: Build and deploy docker image
script:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker build -t claranet/nagitheus:latest .
- docker tag claranet/nagitheus:latest claranet/nagitheus:$TRAVIS_BRANCH
- docker push claranet/nagitheus:latest
- docker push claranet/nagitheus:$TRAVIS_BRANCH