forked from estafette/estafette-gke-preemptible-killer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.estafette.yaml
51 lines (45 loc) · 1.09 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
builder:
track: dev
labels:
app-group: estafette-various
team: estafette-team
language: golang
version:
semver:
major: 1
minor: 0
stages:
build:
image: golang:1.12.5-alpine3.9
env:
CGO_ENABLED: 0
GOOS: linux
GOFLAGS: -mod=vendor
commands:
- go test ./...
- go build -a -installsuffix cgo -ldflags "-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
repositories:
- estafette
path: ./publish
copy:
- /etc/ssl/certs/ca-certificates.crt
push-to-docker-hub:
image: extensions/docker:dev
action: push
repositories:
- estafette
when:
status == 'succeeded' &&
branch == 'master' &&
server == 'gocd'
slack-notify:
image: extensions/slack-build-status:dev
workspace: estafette
channels:
- '#build-status'
when:
status == 'succeeded' ||
status == 'failed'