File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://docs.renovatebot.com/renovate-schema.json" ,
3
3
"extends" : [
4
- " config:best-practices"
4
+ " config:recommended" ,
5
+ " helpers:pinGitHubActionDigests" ,
6
+ " :pinDevDependencies" ,
7
+ " :pinDigestsDisabled"
5
8
],
6
9
"packageRules" : [
7
10
{
45
48
" .github/.*/.*\\ .yml"
46
49
],
47
50
"matchStrings" : [
48
- " # renovate datasource: (?<datasource>[^,]+), depName: (?<depName>[^\\ n]+)\\ n.+?(?<currentValue>v?\\ d+(\\ .\\ d+(\\ .\\ d+)?)?)\\ n"
51
+ " # renovate datasource: (?<datasource>[^,]+), depName: (?<depName>[^\\ n]+)\\ n.+?(?<currentValue>v?\\ d+(\\ .\\ d+(\\ .\\ d+)?)?(-[^ \\ n]+)? )\\ n"
49
52
]
50
53
},
51
54
{
61
64
"versioningTemplate" : " semver"
62
65
},
63
66
{
64
- "description" : " Match versions in Dockerfile" ,
67
+ "description" : " Match versions (per datasource and depName) in Dockerfile" ,
65
68
"customType" : " regex" ,
66
69
"fileMatch" : [
67
70
" Dockerfile"
Original file line number Diff line number Diff line change @@ -4,14 +4,19 @@ name: Lint
4
4
" on " : push
5
5
6
6
jobs :
7
+ vsns :
8
+ runs-on : ubuntu-22.04
9
+
10
+ outputs :
11
+ # renovate datasource: docker, depName: hadolint/hadolint
12
+ hadolint : 2.12.0
13
+
7
14
build :
8
15
name : Lint
9
16
10
17
runs-on : ubuntu-22.04
11
18
12
- env :
13
- # renovate datasource: docker, depName: hadolint/hadolint
14
- hadolint-version : 2.12.0
19
+ needs : [vsns]
15
20
16
21
steps :
17
22
- name : Checkout
23
28
npm run dist
24
29
25
30
- name : Lint Dockerfile
26
- run : docker run --rm -i hadolint/hadolint:${{ env. hadolint-version }} < Dockerfile
31
+ run : docker run --rm -i hadolint/hadolint:${{ needs.vsns.outputs. hadolint }} < Dockerfile
27
32
28
33
- name : Check if build left artifacts
29
34
run : git diff --exit-code
You can’t perform that action at this time.
0 commit comments