From 4e3538592e4d58e2b870040b10d65858ab0c377b Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 1 Mar 2022 20:51:18 +0100 Subject: [PATCH] Revert to Node 12 as default runtime Signed-off-by: CrazyMax --- action.yml | 2 +- hack/build.Dockerfile => dev.Dockerfile | 2 +- docker-bake.hcl | 31 ++++++------------------- package.json | 3 --- 4 files changed, 9 insertions(+), 29 deletions(-) rename hack/build.Dockerfile => dev.Dockerfile (99%) diff --git a/action.yml b/action.yml index fd47c79..5e837ac 100644 --- a/action.yml +++ b/action.yml @@ -26,6 +26,6 @@ inputs: required: false runs: - using: 'node16' + using: 'node12' main: 'dist/index.js' post: 'dist/index.js' diff --git a/hack/build.Dockerfile b/dev.Dockerfile similarity index 99% rename from hack/build.Dockerfile rename to dev.Dockerfile index d371531..9b63675 100644 --- a/hack/build.Dockerfile +++ b/dev.Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1.3-labs -ARG NODE_VERSION +ARG NODE_VERSION=12 ARG DOCKER_VERSION=20.10.10 ARG BUILDX_VERSION=0.7.0 diff --git a/docker-bake.hcl b/docker-bake.hcl index 638b005..df1255f 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -1,13 +1,3 @@ -variable "NODE_VERSION" { - default = "16" -} - -target "node-version" { - args = { - NODE_VERSION = NODE_VERSION - } -} - group "default" { targets = ["build"] } @@ -21,50 +11,43 @@ group "validate" { } target "build" { - inherits = ["node-version"] - dockerfile = "./hack/build.Dockerfile" + dockerfile = "dev.Dockerfile" target = "build-update" output = ["."] } target "build-validate" { - inherits = ["node-version"] - dockerfile = "./hack/build.Dockerfile" + dockerfile = "dev.Dockerfile" target = "build-validate" output = ["type=cacheonly"] } target "format" { - inherits = ["node-version"] - dockerfile = "./hack/build.Dockerfile" + dockerfile = "dev.Dockerfile" target = "format-update" output = ["."] } target "format-validate" { - inherits = ["node-version"] - dockerfile = "./hack/build.Dockerfile" + dockerfile = "dev.Dockerfile" target = "format-validate" output = ["type=cacheonly"] } target "vendor-update" { - inherits = ["node-version"] - dockerfile = "./hack/build.Dockerfile" + dockerfile = "dev.Dockerfile" target = "vendor-update" output = ["."] } target "vendor-validate" { - inherits = ["node-version"] - dockerfile = "./hack/build.Dockerfile" + dockerfile = "dev.Dockerfile" target = "vendor-validate" output = ["type=cacheonly"] } target "test" { - inherits = ["node-version"] - dockerfile = "./hack/build.Dockerfile" + dockerfile = "dev.Dockerfile" target = "test-coverage" output = ["./coverage"] } diff --git a/package.json b/package.json index 4f97871..88d8b6c 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,6 @@ "type": "git", "url": "git+https://github.com/docker/login-action.git" }, - "engines": { - "node": "^16" - }, "keywords": [ "actions", "docker",