forked from volcano-sh/volcano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 808 Bytes
/
.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
dist: xenial
language: go
go:
- '1.11.x'
sudo: required
env:
- HOME=/home/travis
services:
- docker
go_import_path: volcano.sh/volcano
jobs:
include:
- stage: publish release
if: branch = master
before_deploy:
- export TRAVIS_TAG=$(git describe --tags)
script:
- echo "publish release to github & dockerhub"
deploy:
- provider: script
script: make TAG=${TRAVIS_TAG} RELEASE_VER=${TRAVIS_TAG} release
on:
tags: true
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: _output/release/volcano-${TRAVIS_TAG}-${OSTYPE}.tar.gz
skip_cleanup: true
on:
tags: true
notifications:
webhooks: https://www.travisbuddy.com/
on_success: never