-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-manifest-with-triggers.yaml
70 lines (63 loc) · 1.51 KB
/
test-manifest-with-triggers.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
labels:
app: estafette-ci-api
team: estafette-team
language: golang
# in addition to git push to the pipeline repository, the triggers will start a build as well
triggers:
- pipeline:
event: finished
status: succeeded
name: github.com/estafette/estafette-ci-manifest
branch: main
builds:
branch: main
- git:
event: push
repository: github.com/estafette/estafette-ci-builder
branch: main
- docker:
event: push
image: golang
tag: 1.8-alpine
- pubsub:
project: my-project-id
topic: topic-name
# automatically executed stages on a push to the repository
stages:
build:
image: golang:1.12.1-alpine3.9
env:
CGO_ENABLED: 0
GOOS: linux
GOFLAGS: -mod=vendor
commands:
- go test ./...
# releases are automatically triggered from stages or manually from gui, cli or slack
releases:
development:
triggers:
- pipeline:
name: github.com/estafette/estafette-ci-builder
branch: '!~ main'
- cron:
schedule: '0 10 */1 * *'
- pubsub:
project: my-project-id
topic: topic-name
stages:
deploy:
image: extensions/deploy-to-kubernetes-engine:dev
staging:
actions:
- name: deploy-canary
- name: rollback-canary
- name: deploy-stable
triggers:
- release:
name: github.com/estafette/estafette-ci-builder
target: development
releases:
action: deploy-canary
stages:
deploy:
image: extensions/deploy-to-kubernetes-engine:dev