summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorRyan <me@hackerc.at>2021-12-22 20:34:18 +0100
committerGitHub <noreply@github.com>2021-12-22 20:34:18 +0100
commit558081242ca322997437de126324ae9977eb7da0 (patch)
tree10593725582bd3ed98f1dbfe3c7fec24a59fd4de /cmd
parentFeature: uses in composite (#793) (diff)
downloadforgejo-act-558081242ca322997437de126324ae9977eb7da0.tar.xz
forgejo-act-558081242ca322997437de126324ae9977eb7da0.zip
feat: add node16 support (#922)
* feat: add node16 support Signed-off-by: hackercat <me@hackerc.at> * feat: bump images to node16 Signed-off-by: hackercat <me@hackerc.at> * lint(editorconfig): ignore *.md due to mixed style Signed-off-by: hackercat <me@hackerc.at> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/platforms.go6
-rw-r--r--cmd/root.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/cmd/platforms.go b/cmd/platforms.go
index 1e8bb5c..872980e 100644
--- a/cmd/platforms.go
+++ b/cmd/platforms.go
@@ -6,9 +6,9 @@ import (
func (i *Input) newPlatforms() map[string]string {
platforms := map[string]string{
- "ubuntu-latest": "node:12-buster-slim",
- "ubuntu-20.04": "node:12-buster-slim",
- "ubuntu-18.04": "node:12-buster-slim",
+ "ubuntu-latest": "node:16-buster-slim",
+ "ubuntu-20.04": "node:16-buster-slim",
+ "ubuntu-18.04": "node:16-buster-slim",
}
for _, p := range i.platforms {
diff --git a/cmd/root.go b/cmd/root.go
index 9dfaff4..69f0ed7 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -325,7 +325,7 @@ func defaultImageSurvey(actrc string) error {
case "Medium":
option = "-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest\n-P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:act-20.04\n-P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:act-18.04\n"
case "Micro":
- option = "-P ubuntu-latest=node:12-buster-slim\n-P ubuntu-20.04=node:12-buster-slim\n-P ubuntu-18.04=node:12-buster-slim\n"
+ option = "-P ubuntu-latest=node:16-buster-slim\n-P ubuntu-20.04=node:16-buster-slim\n-P ubuntu-18.04=node:16-buster-slim\n"
}
f, err := os.Create(actrc)