From 12e67002fec6f608758517689f3db624dc1286c3 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 17 May 2022 21:11:33 +0200 Subject: [PATCH] feat: add ubuntu-22.04 (#1150) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- cmd/platforms.go | 1 + cmd/root.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/platforms.go b/cmd/platforms.go index 872980ed..9d7e97a8 100644 --- a/cmd/platforms.go +++ b/cmd/platforms.go @@ -7,6 +7,7 @@ import ( func (i *Input) newPlatforms() map[string]string { platforms := map[string]string{ "ubuntu-latest": "node:16-buster-slim", + "ubuntu-22.04": "node:16-bullseye-slim", "ubuntu-20.04": "node:16-buster-slim", "ubuntu-18.04": "node:16-buster-slim", } diff --git a/cmd/root.go b/cmd/root.go index a9b88d48..d373da68 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -441,9 +441,9 @@ func defaultImageSurvey(actrc string) error { case "Large": option = "-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-latest\n-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-20.04\n-P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:full-18.04\n" 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" + option = "-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest\n-P ubuntu-22.04=ghcr.io/catthehacker/ubuntu:act-22.04\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:16-buster-slim\n-P ubuntu-20.04=node:16-buster-slim\n-P ubuntu-18.04=node:16-buster-slim\n" + option = "-P ubuntu-latest=node:16-buster-slim\n-P -P ubuntu-22.04=node:16-bullseye-slim\n ubuntu-20.04=node:16-buster-slim\n-P ubuntu-18.04=node:16-buster-slim\n" } f, err := os.Create(actrc)