forked from mittwald/brudi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (38 loc) · 1.06 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
language: go
os: linux
dist: bionic
go:
- '1.15'
services:
- docker
addons:
apt:
packages:
- curl
- bash
- wget
- make
env:
global:
- GO111MODULE=on
- CGO_ENABLED=0
- GO_VERSION=1.15
- GORELEASER_VERSION=v0.144.0
script:
- curl -sL https://git.io/goreleaser | VERSION=${GORELEASER_VERSION} bash -s -- --snapshot --skip-publish --rm-dist
before_deploy:
- docker login -u "${DOCKER_LOGIN_USERNAME}" -p "${DOCKER_LOGIN_PASSWORD}" quay.io
deploy:
- provider: script
cleanup: false
script: curl -sL https://git.io/goreleaser | VERSION=${GORELEASER_VERSION} bash -s -- --config build/ci/.goreleaser.yml --snapshot --skip-publish --rm-dist && docker push "quay.io/mittwald/brudi:latest"
on:
tags: false
branch: master
condition: $TRAVIS_OS_NAME = linux
- provider: script
cleanup: false
script: curl -sL https://git.io/goreleaser | VERSION=${GORELEASER_VERSION} bash -s -- --config build/ci/.goreleaser.yml --rm-dist
on:
tags: true
condition: $TRAVIS_OS_NAME = linux