-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbosun.yaml
86 lines (86 loc) · 2.54 KB
/
bosun.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
imports:
- integration/testdata/e2e/simple-http-test/suite.yaml
- integration/testdata/e2e/mongo-test/suite.yaml
apps:
- name: bosun
branching: null
repo: naveego/bosun
version: 3.5.0
labels:
category: tool
repo-kind: own
images: []
scripts:
- name: build
steps:
- cmd: |
set -e
version=$(bosun app version bosun)
commit=$(git rev-parse --short HEAD)
timestamp=$(date -Iseconds)
ldflags="-s -w -X github.com/naveego/bosun/pkg/core.Version=${version} -X github.com/naveego/bosun/pkg/core.Timestamp='test' -X github.com/naveego/bosun/pkg/core.Commit=${commit}"
go build --ldflags "$ldflags"
- name: install
steps:
- cmd: |
set -e
version=$(bosun app version bosun)
commit=$(git rev-parse --short HEAD)
timestamp=$(date -Iseconds)
ldflags="-s -w -X github.com/naveego/bosun/pkg/core.Version=${version} -X github.com/naveego/bosun/pkg/core.Timestamp='test' -X github.com/naveego/bosun/pkg/core.Commit=${commit}"
go install --ldflags "$ldflags"
- name: publish
steps:
- bosun: [""]
cmd: |-
set -e
if [[ -n "$(git status --porcelain)" ]] ; then
echo "directory is dirty"
exit 1
fi
git tag $(bosun app version bosun)
git push --tags
goreleaser --rm-dist
actions:
- name: TestManualHTTPTest
description: Test for manual actions.
when: [Manual]
test:
http: https://google.com
- name: ManualMongo
description: Test for manual mongo insert action.
when: [Manual]
mongo:
connection:
dbName: bosun-test
host: ""
port: ""
kubePort:
forward: true
serviceName: mongodb-0
port: 27017
namespace: ""
credentials:
type: vault
vaultPath: database/creds/mongodb-provisioner
authSource: admin
databaseFile: test/mongo/db.yaml
rebuildDb: false
files: []
releaseHistory: []
providerInfo: workspace
repos:
- name: bosun
branching:
master: ""
develop: ""
release: ""
feature: ""
labels: {}
- name: bosun
branching:
master: ""
develop: ""
release: ""
feature: ""
labels: {}