-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (33 loc) · 2.8 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
language: go
go:
- 1.10.x
services:
- docker
addons:
apt:
packages:
- docker-ce=18.03.1~ce-0~ubuntu
install:
- docker --version
env:
global:
- secure: Xir3AwIKr07bPyLg8d3hiYCSnKQpRo4i2qNDQVLNJztgBHBcYQCs/Wlz9+yHTXzndyBhbmdDEnJ2GnL5UvNkuVeNud6tp76/obtXelaIrjiTDHigea0vTnhC3WV9CcA7rHDp9pgv5lGfUFUUU+96zDMfcLH7fKtAb6XOPiz/UNoqWNYez6FyWpJu0pzgM7NCF/XU2HAHgI+cnUETk9IdYypS1CyWsrJMuJumj8XNZzNKKNV+64KPYuE1UgJXRbmcgqnpReYAx7bJs8voFUojKNOL58fINjcYgHOPmk+3ej33Dj5QA63Co5Bwx6cDhaAJGBzK79iSjMMe16s7dTUw7DV5YMFLsVBOqXsJ508H8xF8S0pBoe37kc3/ra7Gcc5ZRV7eGRstfEhK+kvqlcvwqfT2o1Kiu7moIo9aDfXAHMvyFqxc9LyO0e+6UdW7o2OvlS5XA314DVS/sVhXF9EmZNTepM1qTkwaQJMN2CDJ0bThvR2ebE32tMMIdyWN+xoOd5lgEFCUPGd5i0hY8vU02LiiFRaU2BXiethuqrVbWs/2EsKPTVGzKV6EU4T3Pggq9PgJeHen7IXppGp0BbxZ6NX3tJdrtPtLaqdVMPoaGvfozLQQmh16aPs5aqvBIrMlyfop734CrwiZ6kH3VpdfS0MZhQwDf2K5y4ZN8kz3AQU=
- secure: sffJnsVd9uwYH1g1t11ufCdSbJWv8xmoGG3vxuU7k8S9Q0wWpRdFW9eORjMtDj/szhNedfTTINZKvouVWaNqoGPSy6CMbX87qtbbEFUrtMqRwG+qWbSxf0HMqItRp93vBV9zF39z0BSW2Ku1VN2C3qGiWeMBcxr8L+CsLEt+OuW1LJ3fiweTV+oCAn6zG+Nn+XwX7jjnvkfxJmWkBV2lcN/e5+W6qHS2ytJiNxBW86K2CrXJQ5ROM/IOC5hqzqTx8+0qb6YXaP1KFzzIQIS5BFaHYDU3xfeVw+1dAMmDcJlg+ojWJi/8UoqgwoRuh/ntRghh4oW2dStxylTIFqDRAKcyAV0hAnyFdEC7N1r3K48I51U2uLaviVvJPAQLAADZsbIZIc4Dh9eUIdgh/+yig2NrZPWn9L4F4red94RL+PpZS+4nF+6x64hQGj/EfTakLVHjmE/7jBxCKsGMGdt/7xb6la4gFK1BMkiP2yqGod6Qq2goUzxD/+hIZtgnMLTIWle1+pt80yQ8I8yuEwF63dCQ1EOdN+WKP7rRC2M5uD1tmh5ywY/tznvPW1tSad5qggZxVi9YaLRjEu6KL3khTXNXUK5/O/do5gnYStWdCDkaCnbDYJNBdvW7z63WMJY/kr1z40Yw5g53DC3kPsBAe6blXqedd75wGz8t7rTDfKc=
script:
- make build-linux
- make build-windows
- make build-osx
- docker build -t sandwichcloud/deli-cli:latest .
- if [ -n "$TRAVIS_TAG" ]; then docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"; fi
- if [ -n "$TRAVIS_TAG" ]; then docker tag sandwichcloud/deli-cli:latest "sandwichcloud/deli-cli:$TRAVIS_TAG"; fi
- if [ -n "$TRAVIS_TAG" ]; then docker push "sandwichcloud/deli-cli:$TRAVIS_TAG"; fi
- if [ -n "$TRAVIS_TAG" ]; then docker push sandwichcloud/deli-cli:latest; fi
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: qfwFL+xrcERlC2bWbpvfi7hMd7DEJKaoThG/p0M42duXoUkz2VtDOE2a2773WHDQ1AqRbO6U4a1W4BZzghgqMFyuD6VZk98V9z+AgAyApM92bKQMJCv8ce+Viv9MbY3L2vS73+FILeceM1zck3k33HaPZI6/LXwIF5hqfXU8ARMfcxMr5F1wyi1S8T6qVwDop5Hmhf1HT4yQ9KjCHlYsKRtLXAfWSe5+Dt01XvbZD6WmEil/YE3NFQWo2PudtZ3VLsFNskcYlSiY2862yqzY2/BNYnhhDL274Z1GaRAWMEJo+3JXuTxvFvbRq164anEq8nQ7C15vT3vhHlTWlqTCWGReortzpgtlx4fagKbnChFnZonf/Ofhs/rUwBrwAvdLHYIU2I9ghLJjmjcefazYUWyVhDooFhYwBLNKNqlbyE9qj5M6WmpVtbcvkFMLPBLXc9itgETYlF5eV5RrrYDeztutt9ClRIoICrXwYOVnY5Us+vUSVqhPXFz5NB0M6AejgJTLyjyeQ7ZWzv4Hs7SYeYMHEOJtqOJIiWIheXZFD5MhVOJd79iOXIB5pSz7hxRiG5Jb/bsoYRU5wGb/sHsxVvKfX4IH3y74PfLUo5vKasUxf5Ff+mYwr22gEJBgmhFQ96Pn2/EkOUbLe+WqQdrkzf6IrRfiNHWyqv8CljwkyEA=
file_glob: true
file: bin/*
on:
tags: true