-
Notifications
You must be signed in to change notification settings - Fork 12
/
spudgun.yaml
57 lines (48 loc) · 1.06 KB
/
spudgun.yaml
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
---
defaults:
notify:
slack:
channel: "#logs"
templateDirs:
- k8s
timeout: 600s
stages:
- name: test
events: [push, CI]
- name: build
policies:
- branch: ["*"]
name: build
- name: deploy
policies:
- branch: ["dev"]
env: staging
name: deploy
- branch: ["feature/*"]
env: test
name: deploy
policies:
- name: env
action: env
- name: build
description: Build romulusd
action: build
- name: deploy
description: Deploy romulusd
action: kubeDeploy
actions:
- name: env
commands: ["printenv | sort"]
- name: build
commands:
- go get github.com/tools/godep && go install github.com/tools/godep
- docker login -e="." -u="$VAR_QUAY_USER" -p="$VAR_QUAY_AUTH" quay.io
- REV="$SG_HEAD" BRANCH=$(echo "$SG_REF" | tr / _) make container
container: golang:1.5
containerDir: /go/src/github.com/timelinelabs/romulus
- name: kubeDeploy
config:
app: romulus
dir: k8s
command: rolling-update
update_period: 10s