File tree 1 file changed +29
-6
lines changed
1 file changed +29
-6
lines changed Original file line number Diff line number Diff line change 3
3
"$schema" : " ../../node_modules/nx/schemas/project-schema.json" ,
4
4
"projectType" : " library" ,
5
5
"metadata" : {
6
- "version" : " 0.0.0"
6
+ "version" : " 0.0.0" ,
7
+ "registries" : [
8
+ " ghcr.io" ,
9
+ " docker.io"
10
+ ],
11
+ "namespace" : " ebizbase/node-distroless" ,
12
+ "labels" : {
13
+ "org.opencontainers.image.source" : " https://github.com/ebizbase/dev-infras" ,
14
+ "org.opencontainers.image.description" : " Base on distroless with dumb-init image" ,
15
+ "org.opencontainers.image.licenses" : " MIT"
16
+ }
7
17
},
8
18
"tags" : [],
9
19
"targets" : {
10
20
"build" : {
11
21
"executor" : " @ebizbase/nx-docker:build" ,
12
22
"options" : {
13
- "tags" : [" node-distroless:edge" ],
14
- "outputs" : [" type=docker" ]
23
+ "tags" : [
24
+ " edge"
25
+ ],
26
+ "outputs" : [
27
+ " type=docker"
28
+ ]
15
29
}
16
30
},
17
31
"test" : {
18
- "dependsOn" : [" build" ],
32
+ "dependsOn" : [
33
+ " build"
34
+ ],
19
35
"executor" : " nx:run-commands" ,
20
36
"options" : {
21
37
"command" : " docker run --rm node-distroless:edge -e 'console.log(process.version)'"
24
40
"publish" : {
25
41
"executor" : " @ebizbase/nx-docker:build" ,
26
42
"options" : {
27
- "tags" : [" ghcr.io/ebizbase/node-distroless" ],
28
- "outputs" : [" type=image" ]
43
+ "tags" : [
44
+ " latest" ,
45
+ " {major}" ,
46
+ " {major}.{minor}" ,
47
+ " {major}.{minor}.{patch}"
48
+ ],
49
+ "outputs" : [
50
+ " type=registry"
51
+ ]
29
52
}
30
53
}
31
54
}
You can’t perform that action at this time.
0 commit comments