-
Notifications
You must be signed in to change notification settings - Fork 0
/
.estafette.yaml
105 lines (92 loc) · 2.01 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
builder:
track: dev
labels:
type: web
app-group: estafette-ci
team: estafette-team
language: nodejs
version:
semver:
major: 1
minor: 4
patch: 0
stages:
audit-and-restore:
parallelStages:
snyk:
image: extensions/snyk:dev
severity-threshold: medium
audit:
image: extensions/npm-audit:dev
action: audit
level: low
dev-level: critical
workspace: estafette
channels:
- '#npm-audit'
restore:
image: node:16-alpine
env:
npm_config_update-notifier: false
commands:
- npm ci
lint-and-build:
parallelStages:
lint:
image: node:16-alpine
env:
npm_config_update-notifier: false
commands:
- npm run lint
build:
image: node:16-alpine
env:
npm_config_update-notifier: false
commands:
- npm run build
bake:
image: extensions/docker:dev
action: build
severity: unknown
repositories:
- estafette
path: ./dist
copy:
- favicon.ico
- nginx.vh.default.conf
- docker-entrypoint.sh
- package-lock.json
test:
services:
- name: ci.estafette.io
image: estafette/estafette-ci-web:${ESTAFETTE_BUILD_VERSION}
readiness:
path: /robots.txt
port: 5000
image: node:16-alpine
env:
npm_config_update-notifier: false
commands:
- apk add curl
- curl --fail http://ci.estafette.io:5000/manifest/encrypt
push-to-docker-hub:
image: extensions/docker:dev
retries: 5
action: push
repositories:
- estafette
tag-revision:
image: bitnami/git
commands:
- git tag ${ESTAFETTE_BUILD_VERSION}
- git push origin ${ESTAFETTE_BUILD_VERSION}
when: status == 'succeeded' &&
branch == 'main'
slack-notify:
image: extensions/slack-build-status:dev
workspace: estafette
channels:
- '#build-status'
when:
status == 'succeeded' ||
status == 'failed'