-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.estafette.yaml
114 lines (100 loc) · 2.4 KB
/
.estafette.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
builder:
track: dev
labels:
app-group: estafette-ci-extensions
team: estafette-team
language: golang
version:
semver:
major: 0
minor: 1
stages:
build:
image: golang:1.20-alpine
env:
CGO_ENABLED: 0
GOOS: linux
commands:
- go test -short ./...
- go build -a -installsuffix cgo -ldflags "-X main.appgroup=${ESTAFETTE_LABEL_APP_GROUP} -X main.app=${ESTAFETTE_GIT_NAME} -X main.version=${ESTAFETTE_BUILD_VERSION} -X main.revision=${ESTAFETTE_GIT_REVISION} -X main.branch=${ESTAFETTE_GIT_BRANCH} -X main.buildDate=${ESTAFETTE_BUILD_DATETIME}" -o ./publish/${ESTAFETTE_GIT_NAME} .
bake:
image: extensions/docker:dev
action: build
severity: unknown
container: snyk
repositories:
- extensions
path: ./publish
copy:
- settings.xml
test:
parallelStages:
test-both:
image: extensions/snyk:${ESTAFETTE_BUILD_VERSION}
test-test:
image: extensions/snyk:${ESTAFETTE_BUILD_VERSION}
action: test
test-monitor:
image: extensions/snyk:${ESTAFETTE_BUILD_VERSION}
action: monitor
push-to-docker-hub:
image: extensions/docker:dev
action: push
container: snyk
repositories:
- extensions
snyk:
image: extensions/snyk:stable
severityThreshold: low
releases:
dev:
triggers:
- pipeline:
name: self
branch: .+
stages:
tag-container-image:
image: extensions/docker:dev
action: tag
container: snyk
repositories:
- extensions
tags:
- dev
beta:
stages:
tag-container-image:
image: extensions/docker:dev
action: tag
container: snyk
repositories:
- extensions
tags:
- beta
slack-notify:
image: extensions/slack-build-status:dev
workspace: estafette
channels:
- '#build-status'
when:
status == 'succeeded' ||
status == 'failed'
stable:
stages:
tag-container-image:
image: extensions/docker:dev
action: tag
container: snyk
repositories:
- extensions
tags:
- stable
- latest
slack-notify:
image: extensions/slack-build-status:dev
workspace: estafette
channels:
- '#build-status'
when:
status == 'succeeded' ||
status == 'failed'