Skip to content

Commit

Permalink
Merge pull request #160 from crazy-max/node12
Browse files Browse the repository at this point in the history
Revert to Node 12 as default runtime
  • Loading branch information
crazy-max authored Mar 1, 2022
2 parents bb984ef + 4e35385 commit dd4fa06
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 29 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ inputs:
required: false

runs:
using: 'node16'
using: 'node12'
main: 'dist/index.js'
post: 'dist/index.js'
2 changes: 1 addition & 1 deletion hack/build.Dockerfile → dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
31 changes: 7 additions & 24 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
variable "NODE_VERSION" {
default = "16"
}

target "node-version" {
args = {
NODE_VERSION = NODE_VERSION
}
}

group "default" {
targets = ["build"]
}
Expand All @@ -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"]
}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"type": "git",
"url": "git+https://github.com/docker/login-action.git"
},
"engines": {
"node": "^16"
},
"keywords": [
"actions",
"docker",
Expand Down

0 comments on commit dd4fa06

Please sign in to comment.