From e2fafda97eb5c44f66e5f18de4aef883be0d2d5a Mon Sep 17 00:00:00 2001 From: John Martin Date: Sun, 24 Nov 2024 06:03:23 +0000 Subject: [PATCH] build: update to new version of nx docker --- images/node-distroless/project.json | 35 ++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/images/node-distroless/project.json b/images/node-distroless/project.json index c501927..8fbdcbc 100644 --- a/images/node-distroless/project.json +++ b/images/node-distroless/project.json @@ -3,19 +3,35 @@ "$schema": "../../node_modules/nx/schemas/project-schema.json", "projectType": "library", "metadata": { - "version": "0.0.0" + "version": "0.0.0", + "registries": [ + "ghcr.io", + "docker.io" + ], + "namespace": "ebizbase/node-distroless", + "labels": { + "org.opencontainers.image.source": "https://github.com/ebizbase/dev-infras", + "org.opencontainers.image.description": "Base on distroless with dumb-init image", + "org.opencontainers.image.licenses": "MIT" + } }, "tags": [], "targets": { "build": { "executor": "@ebizbase/nx-docker:build", "options": { - "tags": ["node-distroless:edge"], - "outputs": ["type=docker"] + "tags": [ + "edge" + ], + "outputs": [ + "type=docker" + ] } }, "test": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "docker run --rm node-distroless:edge -e 'console.log(process.version)'" @@ -24,8 +40,15 @@ "publish": { "executor": "@ebizbase/nx-docker:build", "options": { - "tags": ["ghcr.io/ebizbase/node-distroless"], - "outputs": ["type=image"] + "tags": [ + "latest", + "{major}", + "{major}.{minor}", + "{major}.{minor}.{patch}" + ], + "outputs": [ + "type=registry" + ] } } }