Repository navigation
Expand file tree
/
Copy pathupdatecli-compose.yaml
More file actions
128 lines (118 loc) · 4.33 KB
/
Copy pathupdatecli-compose.yaml
File metadata and controls
128 lines (118 loc) · 4.33 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: udash-front
values:
- updatecli/values.d/scm.yaml
policies:
- name: Local pipelines
id: local
config:
- updatecli/updatecli.d/
- name: Update Updatecli policies
id: updatecli-policies
policy: ghcr.io/updatecli/policies/autodiscovery/updatecli:0.12.0@sha256:6b53297d62350862ce1205fc183539c985464b97678404f7da9c133a442b0576
valuesinline:
pipelineid: updatecli-policies
pipeline:
labels:
ecosystem: "updatecli"
monitor: active
# Patch and minor npm updates, merged automatically once CI passes.
# Package.json ranges are ignored so the tracks below choose the versions.
# Tracks need Updatecli 0.125.0 or later.
- name: NPM dependencies
id: npm
policy: ghcr.io/updatecli/policies/autodiscovery/npm:0.15.0@sha256:bc234ac791a29291b708a870a578c1d18e8f18faf5d421ebdacea2f50a75563c
valuesinline:
pipelineid: npm
automerge: true
groupby: individual
spec:
ignoreversionconstraints: true
ignore:
# eslint 9.x is deprecated on npm, so patch and minor updates find
# no version and fail. Remove once eslint 10 (npm-major) is merged.
- packages:
eslint: ""
tracks:
- name: patch
versionfilter:
kind: semver
pattern: patch
- name: minor
versionfilter:
kind: semver
pattern: minoronly
# Major npm updates often need code changes, so they wait for a review.
- name: NPM major updates
id: npm-major
policy: ghcr.io/updatecli/policies/autodiscovery/npm:0.15.0@sha256:bc234ac791a29291b708a870a578c1d18e8f18faf5d421ebdacea2f50a75563c
valuesinline:
pipelineid: npm-major
automerge: false
groupby: individual
spec:
ignoreversionconstraints: true
versionfilter:
kind: semver
pattern: majoronly
- name: NPM vulnerability
id: npm-vulnerability
policy: ghcr.io/updatecli/policies/autodiscovery/npm:0.15.0@sha256:bc234ac791a29291b708a870a578c1d18e8f18faf5d421ebdacea2f50a75563c
valuesinline:
pipelineid: npm-vulnerability
groupby: individual
spec:
vulnerability:
minseverity: "high"
pipeline:
labels:
ecosystem: npm
policy: autodiscovery
vulnerability: minhigh
monitor: active
# The scaffolded Updatecli workflows are skipped: the scaffold entry below
# owns them and pins their actions itself.
- name: Handle GitHub action version update
id: githubaction
policy: ghcr.io/updatecli/policies/autodiscovery/githubaction:0.5.0@sha256:7dd97c132950994dc3fb89e0bc77037358e9168d8e6980705b2a06e444270626
valuesinline:
pipelineid: githubaction
spec:
ignore:
- path: .github/workflows/updatecli.yaml
- path: .github/workflows/updatecli_test.yaml
- path: .github/workflows/updatecli_update.yaml
- name: Handle Nodejs version in githubaction
id: nodejs
policy: ghcr.io/updatecli/policies/nodejs/githubaction:0.12.0@sha256:9bd7725a2f31dc104bb8086458febb7fce9d66347dff560ba3d45053d97d9b19
valuesinline:
pipelineid: nodejs
versionpattern: "~24"
automerge: false
# Writes updatecli.yaml, updatecli_test.yaml and updatecli_update.yaml, and
# keeps their Updatecli version and action pins current. Edit the workflows
# through these values: hand edits are reverted on the next run.
- name: Configure Updatecli workflows
id: updatecli-workflows
policy: ghcr.io/updatecli/policies/updatecli/githubaction/scaffold:0.3.0@sha256:fd4a504b762f5b6493947985759f8be93f9bfc22175cddbdd4a41e77fc03b414
valuesinline:
pipelineid: updatecli-workflows
gha:
npm:
enabled: true
udash:
enabled: true
update:
cron: "0 3 * * *"
matrix:
- target_name: "existing pipelines"
apply_args: "--existing-only=true"
- target_name: "monitored pipelines"
apply_args: "--labels=monitor:active"
pipeline:
labels:
ecosystem: "updatecli"
policy: scaffold
monitor: active
release: "updatecli"
# The Dockerfile base images (node:lts-alpine, nginx:stable-alpine) are left
# on floating tags on purpose, so no Dockerfile policy is configured.