feat: add ubuntu-22.04 (#1150)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
dfdafd9e85
commit
69691c88b3
4 changed files with 18 additions and 16 deletions
18
IMAGES.md
18
IMAGES.md
|
@ -8,21 +8,21 @@
|
||||||
|
|
||||||
**Note 2: `node` `-slim` images don't have `python` installed, if you want to use actions or software that is depending on `python`, you need to specify image manually**
|
**Note 2: `node` `-slim` images don't have `python` installed, if you want to use actions or software that is depending on `python`, you need to specify image manually**
|
||||||
|
|
||||||
| Image | Size |
|
| Image | Size |
|
||||||
| ----------------------------------- | ------------------------------------------------------ |
|
| ------------------------------------- | ---------------------------------------------------------- |
|
||||||
| [`node:12-buster`][hub/_/node] | ![`buster-size`][hub/_/node/12-buster/size] |
|
| [`node:16-bullseye`][hub/_/node] | ![`bullseye-size`][hub/_/node/16-bullseye/size] |
|
||||||
| [`node:12-buster-slim`][hub/_/node] | ![`micro-buster-size`][hub/_/node/12-buster-slim/size] |
|
| [`node:16-bullseye-slim`][hub/_/node] | ![`micro-bullseye-size`][hub/_/node/16-bullseye-slim/size] |
|
||||||
| [`node:16-buster`][hub/_/node] | ![`buster-size`][hub/_/node/16-buster/size] |
|
| [`node:16-buster`][hub/_/node] | ![`buster-size`][hub/_/node/16-buster/size] |
|
||||||
| [`node:16-buster-slim`][hub/_/node] | ![`micro-buster-size`][hub/_/node/16-buster-slim/size] |
|
| [`node:16-buster-slim`][hub/_/node] | ![`micro-buster-size`][hub/_/node/16-buster-slim/size] |
|
||||||
|
|
||||||
**Note: `catthehacker/ubuntu` images are based on Ubuntu root filesystem**
|
**Note: `catthehacker/ubuntu` images are based on Ubuntu root filesystem**
|
||||||
|
|
||||||
| Image | GitHub Repository |
|
| Image | GitHub Repository |
|
||||||
| -------------------------------------------------------------------- | ------------------------------------------------------------- |
|
| -------------------------------------------------------------------- | ------------------------------------------------------------- |
|
||||||
| [`ghcr.io/catthehacker/ubuntu:act-latest`][ghcr/catthehacker/ubuntu] | [`catthehacker/docker-images`][gh/catthehacker/docker_images] |
|
| [`ghcr.io/catthehacker/ubuntu:act-latest`][ghcr/catthehacker/ubuntu] | [`catthehacker/docker-images`][gh/catthehacker/docker_images] |
|
||||||
|
| [`ghcr.io/catthehacker/ubuntu:act-22.04`][ghcr/catthehacker/ubuntu] | [`catthehacker/docker-images`][gh/catthehacker/docker_images] |
|
||||||
| [`ghcr.io/catthehacker/ubuntu:act-20.04`][ghcr/catthehacker/ubuntu] | [`catthehacker/docker-images`][gh/catthehacker/docker_images] |
|
| [`ghcr.io/catthehacker/ubuntu:act-20.04`][ghcr/catthehacker/ubuntu] | [`catthehacker/docker-images`][gh/catthehacker/docker_images] |
|
||||||
| [`ghcr.io/catthehacker/ubuntu:act-18.04`][ghcr/catthehacker/ubuntu] | [`catthehacker/docker-images`][gh/catthehacker/docker_images] |
|
| [`ghcr.io/catthehacker/ubuntu:act-18.04`][ghcr/catthehacker/ubuntu] | [`catthehacker/docker-images`][gh/catthehacker/docker_images] |
|
||||||
| [`ghcr.io/catthehacker/ubuntu:act-16.04`][ghcr/catthehacker/ubuntu] | [`catthehacker/docker-images`][gh/catthehacker/docker_images] |
|
|
||||||
|
|
||||||
## Images based on [`actions/virtual-environments`][gh/actions/virtual-environments]
|
## Images based on [`actions/virtual-environments`][gh/actions/virtual-environments]
|
||||||
|
|
||||||
|
@ -44,8 +44,8 @@ Feel free to make a pull request with your image added here
|
||||||
|
|
||||||
[hub/_/buildpack-deps]: https://hub.docker.com/_/buildpack-deps
|
[hub/_/buildpack-deps]: https://hub.docker.com/_/buildpack-deps
|
||||||
[hub/_/node]: https://hub.docker.com/r/_/node
|
[hub/_/node]: https://hub.docker.com/r/_/node
|
||||||
[hub/_/node/12-buster/size]: https://img.shields.io/docker/image-size/_/node/12-buster
|
[hub/_/node/16-bullseye/size]: https://img.shields.io/docker/image-size/_/node/16-bullseye
|
||||||
[hub/_/node/12-buster-slim/size]: https://img.shields.io/docker/image-size/_/node/12-buster-slim
|
[hub/_/node/16-bullseye-slim/size]: https://img.shields.io/docker/image-size/_/node/16-bullseye-slim
|
||||||
[hub/_/node/16-buster/size]: https://img.shields.io/docker/image-size/_/node/16-buster
|
[hub/_/node/16-buster/size]: https://img.shields.io/docker/image-size/_/node/16-buster
|
||||||
[hub/_/node/16-buster-slim/size]: https://img.shields.io/docker/image-size/_/node/16-buster-slim
|
[hub/_/node/16-buster-slim/size]: https://img.shields.io/docker/image-size/_/node/16-buster-slim
|
||||||
[ghcr/catthehacker/ubuntu]: https://github.com/catthehacker/docker_images/pkgs/container/ubuntu
|
[ghcr/catthehacker/ubuntu]: https://github.com/catthehacker/docker_images/pkgs/container/ubuntu
|
||||||
|
|
11
README.md
11
README.md
|
@ -246,11 +246,12 @@ export DOCKER_HOST=$(docker context inspect --format '{{.Endpoints.docker.Host}}
|
||||||
|
|
||||||
GitHub Actions offers managed [virtual environments](https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners) for running workflows. In order for `act` to run your workflows locally, it must run a container for the runner defined in your workflow file. Here are the images that `act` uses for each runner type and size:
|
GitHub Actions offers managed [virtual environments](https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners) for running workflows. In order for `act` to run your workflows locally, it must run a container for the runner defined in your workflow file. Here are the images that `act` uses for each runner type and size:
|
||||||
|
|
||||||
| GitHub Runner | Micro Docker Image | Medium Docker Image | Large Docker Image |
|
| GitHub Runner | Micro Docker Image | Medium Docker Image | Large Docker Image |
|
||||||
| --------------- | ------------------------------ | --------------------------------------------------------- | ---------------------------------------------------------- |
|
| --------------- | -------------------------------- | --------------------------------------------------------- | ---------------------------------------------------------- |
|
||||||
| `ubuntu-latest` | [`node:16-buster-slim`][micro] | [`ghcr.io/catthehacker/ubuntu:act-latest`][docker_images] | [`ghcr.io/catthehacker/ubuntu:full-latest`][docker_images] |
|
| `ubuntu-latest` | [`node:16-buster-slim`][micro] | [`ghcr.io/catthehacker/ubuntu:act-latest`][docker_images] | [`ghcr.io/catthehacker/ubuntu:full-latest`][docker_images] |
|
||||||
| `ubuntu-20.04` | [`node:16-buster-slim`][micro] | [`ghcr.io/catthehacker/ubuntu:act-20.04`][docker_images] | [`ghcr.io/catthehacker/ubuntu:full-20.04`][docker_images] |
|
| `ubuntu-22.04` | [`node:16-bullseye-slim`][micro] | [`ghcr.io/catthehacker/ubuntu:act-22.04`][docker_images] | `unavailable` |
|
||||||
| `ubuntu-18.04` | [`node:16-buster-slim`][micro] | [`ghcr.io/catthehacker/ubuntu:act-18.04`][docker_images] | [`ghcr.io/catthehacker/ubuntu:full-18.04`][docker_images] |
|
| `ubuntu-20.04` | [`node:16-buster-slim`][micro] | [`ghcr.io/catthehacker/ubuntu:act-20.04`][docker_images] | [`ghcr.io/catthehacker/ubuntu:full-20.04`][docker_images] |
|
||||||
|
| `ubuntu-18.04` | [`node:16-buster-slim`][micro] | [`ghcr.io/catthehacker/ubuntu:act-18.04`][docker_images] | [`ghcr.io/catthehacker/ubuntu:full-18.04`][docker_images] |
|
||||||
|
|
||||||
[micro]: https://hub.docker.com/_/buildpack-deps
|
[micro]: https://hub.docker.com/_/buildpack-deps
|
||||||
[docker_images]: https://github.com/catthehacker/docker_images
|
[docker_images]: https://github.com/catthehacker/docker_images
|
||||||
|
|
|
@ -7,6 +7,7 @@ import (
|
||||||
func (i *Input) newPlatforms() map[string]string {
|
func (i *Input) newPlatforms() map[string]string {
|
||||||
platforms := map[string]string{
|
platforms := map[string]string{
|
||||||
"ubuntu-latest": "node:16-buster-slim",
|
"ubuntu-latest": "node:16-buster-slim",
|
||||||
|
"ubuntu-22.04": "node:16-bullseye-slim",
|
||||||
"ubuntu-20.04": "node:16-buster-slim",
|
"ubuntu-20.04": "node:16-buster-slim",
|
||||||
"ubuntu-18.04": "node:16-buster-slim",
|
"ubuntu-18.04": "node:16-buster-slim",
|
||||||
}
|
}
|
||||||
|
|
|
@ -441,9 +441,9 @@ func defaultImageSurvey(actrc string) error {
|
||||||
case "Large":
|
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"
|
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":
|
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":
|
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)
|
f, err := os.Create(actrc)
|
||||||
|
|
Loading…
Reference in a new issue