forked from digitalocean/doctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (67 loc) · 2.24 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: go
install: true
notifications:
slack:
rooms:
secure: NR3+H9V0/RAIS98iRqcpoDe9u8d9xMnNVT5EhwRgIiEqtONUUlHWVQaJ0ZS+fzQPHlErhAflGYSLg4L6CStF3UQoojlG6l46d9FQ3WiKFa2YAUtyoOXnOUj8AMPtjfJXwgHDxnOKcZ7RpQWg0uFMG7J8z2I3Mtm0B2MlLmwBa1jPzUkfQDKAjD1h0new7+KoRCaEQLWJA5T/nnyL4gtwjB7lBcr04SDTw91DE/mniT9Jr38UXv8MwOURmm/p5nvlG1blTopLjMWE6F2sOBj4kaDkkizcxUseRsyhu+rFPEFo9X1rPg1gxXW9lKL1JV9JFO29aHe1ZN6T0mSCraYUgqa3UaN3NiYVep/wye8KpMxJ6AiqpGvWP6ABAojlEiQkbKNvklhzKpnqwSQxm8K/mzK8kqOUMzQfEEVdUife5e0SdIk67zeCzu4PZLBJIj661XQzM4zJRy0FgmxyPKWrA8e8RimSzaT1geea96jvCwmG1VfJz+DRV2WFUwg9YIh9Xvb20q0yodvGczZU7AA0AIrePHXntFkjfRB7jQ8RFGwrVL3UqKLo6t2hforrbV0ll1EVRPZ3uUYY/tfYE2z/GNL10dcnzjlW+WYTg3ZA/6GtnsCT6GpaeKUxF9GvOEzQDIG2BwHFfQYTPuXIdFOFqKrMkdz4V+Ak/wviNBD3xrU=
on_pull_requests: false
on_success: change
on_failure: always
jobs:
include:
- stage: deploy
if: type=push
script: echo "running goreleaser"
os: linux
dist: bionic
go: 1.16.x
services: docker
env: CACHE_NAME=DEPLOY_GORELEASER
before_deploy:
- echo "$DOCKER_PASSWORD" | docker login --username sammytheshark --password-stdin
- sudo snap install goreleaser --classic
deploy:
- provider: script
script: ./scripts/release_travis.sh
cleanup: false
on:
tags: true
repo: digitalocean/doctl
- if: type=push
before_script:
- echo "$DOCKER_PASSWORD" | docker login --username sammytheshark --password-stdin
script:
- echo "building snap"
- make _build_snap
dist: bionic
go: 1.16.x
os: linux
services: docker
env: CACHE_NAME=DEPLOY_STABLE_SNAP
deploy:
- provider: snap
channel: stable
snap: doctl_v*.snap
skip_cleanup: true
on:
tags: true
repo: digitalocean/doctl
- if: branch=main and type=push
before_script:
- echo "$DOCKER_PASSWORD" | docker login --username sammytheshark --password-stdin
script:
- echo "building snap"
- make _build_snap
dist: bionic
os: linux
go: 1.16.x
services: docker
env: CACHE_NAME=DEPLOY_CANDIDATE_SNAP
deploy:
- provider: snap
channel: candidate
snap: doctl_v*.snap
skip_cleanup: true
on:
repo: digitalocean/doctl
branch: main