-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.estafette.yaml
76 lines (64 loc) · 1.78 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
builder:
track: dev
labels:
app-group: estafette-ci
team: estafette-team
language: golang
version:
semver:
major: 1
minor: 0
stages:
build:
image: golang:1.17-alpine
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} .
bake:
image: extensions/docker:dev
action: build
inline: |
FROM scratch
LABEL maintainer="estafette.io" \
description="The ${ESTAFETTE_GIT_NAME} is the component that sends events to the api to trigger cron triggers"
COPY ca-certificates.crt /etc/ssl/certs/
COPY ${ESTAFETTE_GIT_NAME} /
ENTRYPOINT ["/${ESTAFETTE_GIT_NAME}"]
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
tag-revision:
image: golang:1.17-alpine
commands:
- apk add git
- git tag ${ESTAFETTE_BUILD_VERSION}
- git push origin ${ESTAFETTE_BUILD_VERSION}
slack-notify:
image: extensions/slack-build-status:dev
workspace: estafette
channels:
- '#build-status'
when:
status == 'failed'