Skip to content

Commit 4f2c006

Browse files
committed
build: update to new version of nx docker
1 parent 2f6431b commit 4f2c006

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

images/node-distroless/project.json

+29-6
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,35 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "library",
55
"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+
}
717
},
818
"tags": [],
919
"targets": {
1020
"build": {
1121
"executor": "@ebizbase/nx-docker:build",
1222
"options": {
13-
"tags": ["node-distroless:edge"],
14-
"outputs": ["type=docker"]
23+
"tags": [
24+
"edge"
25+
],
26+
"outputs": [
27+
"type=docker"
28+
]
1529
}
1630
},
1731
"test": {
18-
"dependsOn": ["build"],
32+
"dependsOn": [
33+
"build"
34+
],
1935
"executor": "nx:run-commands",
2036
"options": {
2137
"command": "docker run --rm node-distroless:edge -e 'console.log(process.version)'"
@@ -24,8 +40,15 @@
2440
"publish": {
2541
"executor": "@ebizbase/nx-docker:build",
2642
"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+
]
2952
}
3053
}
3154
}

0 commit comments

Comments
 (0)