-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (42 loc) · 1.44 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
39
40
41
42
43
44
45
46
47
48
sudo: required
language: go
go:
- tip
services:
- docker
script: make ci
before_deploy:
- "VERSION=${TRAVIS_TAG} make crosscompile"
- "export darwin_386=$(echo bin/docker-beat-darwin-386-${TRAVIS_TAG}.tgz)"
- "export darwin_amd64=$(echo bin/docker-beat-darwin-amd64-${TRAVIS_TAG}.tgz)"
- "export freebsd_386=$(echo bin/docker-beat-freebsd-386-${TRAVIS_TAG}.tgz)"
- "export freebsd_amd64=$(echo bin/docker-beat-freebsd-amd64-${TRAVIS_TAG}.tgz)"
- "export linux_386=$(echo bin/docker-beat-linux-386-${TRAVIS_TAG}.tgz)"
- "export linux_amd64=$(echo bin/docker-beat-linux-amd64-${TRAVIS_TAG}.tgz)"
- "export linux_arm=$(echo bin/docker-beat-linux-arm-${TRAVIS_TAG}.tgz)"
- "export windows_386=$(echo bin/docker-beat-windows-386-${TRAVIS_TAG}.zip)"
- "export windows_amd64=$(echo bin/docker-beat-windows-amd64-${TRAVIS_TAG}.zip)"
- "export shasums=$(echo bin/docker-beat-${TRAVIS_TAG}.shasums)"
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: ${GITHUB_TOKEN}
file:
- "${darwin_386}"
- "${darwin_amd64}"
- "${freebsd_386}"
- "${freebsd_amd64}"
- "${linux_386}"
- "${linux_amd64}"
- "${linux_arm}"
- "${windows_386}"
- "${windows_amd64}"
- "${shasums}"
on:
repo: dmportella/docker-beat
tags: true
after_deploy:
- "VERSION=${TRAVIS_TAG} make docker"
- "docker login -e $DOCKER_EMAIL -u $DOCKER_USERNAME -p $DOCKER_PASSWORD"
- "docker push dmportella/docker-beat"