-
Notifications
You must be signed in to change notification settings - Fork 16
/
.estafette.yaml
110 lines (94 loc) · 2.42 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
builder:
track: dev
labels:
app-group: estafette-controllers
team: estafette-team
language: golang
version:
semver:
major: 1
minor: 2
patch: 5
labelTemplate: '{{branch}}-{{auto}}'
releaseBranch: 1.2.5
stages:
build-lint-and-package:
parallelStages:
build:
image: golang:1.15.2-alpine3.12
env:
CGO_ENABLED: 0
GOOS: linux
commands:
- go test ./...
- 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} .
lint-helm-chart:
image: extensions/helm:dev
action: lint
package-helm-chart:
image: extensions/helm:dev
action: package
bake:
image: extensions/docker:dev
action: build
repositories:
- estafette
path: ./publish
copy:
- /etc/ssl/certs/ca-certificates.crt
check-container:
parallelStages:
check-efficiency:
image: extensions/docker:dev
action: dive
repositories:
- estafette
vulnerability-scan:
image: extensions/docker:dev
action: trivy
repositories:
- estafette
push-to-docker-hub:
image: extensions/docker:dev
action: push
repositories:
- estafette
test-helm-chart:
services:
- name: kubernetes
image: bsycorp/kind:latest-1.17
readiness:
path: /kubernetes-ready
port: 10080
image: extensions/helm:dev
action: test
values: |-
nonExistingValue: with-a-random-value
clone-charts-repo:
image: extensions/git-clone:dev
repo: helm-charts
branch: main
publish-helm-chart:
image: extensions/helm:dev
action: publish
repoBranch: main
slack-notify:
image: extensions/slack-build-status:dev
workspace: estafette
channels:
- '#build-status'
when:
status == 'failed'
releases:
release:
stages:
clone-charts-repo:
image: extensions/git-clone:dev
repo: helm-charts
branch: main
purge-prerelease-helm-charts:
image: extensions/helm:dev
action: purge
repoBranch: main
create-github-release:
image: extensions/github-release:dev