summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorRyan (hackercat) <me@hackerc.at>2021-06-11 01:12:05 +0200
committerGitHub <noreply@github.com>2021-06-11 01:12:05 +0200
commita9fe0383478554705100dc4416b235b2265f718c (patch)
tree66b016b9e3281d5584e8309d2d2d339be4c191e1 /cmd
parentTest fixups for Windows/Forks (#681) (diff)
downloadforgejo-act-a9fe0383478554705100dc4416b235b2265f718c.tar.xz
forgejo-act-a9fe0383478554705100dc4416b235b2265f718c.zip
Update images, fix extrapath (#723)v0.2.23
* fix: typo * fix: remove debug for git references it generates a massive amount of logs * feat: read values from env allows to test act on GHA when it's not a main repo * fix: merge extrapath with PATH * fix(tests): add additional shells for testing * fix(image): update images pin node to major version only, current node version: 12.22.1 replace most images with `node:12-buster-slim` to prevent errors on macOS runner due to DockerHub pull limit replace ocaml image Co-authored-by: Casey Lee <cplee@nektos.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/platforms.go8
-rw-r--r--cmd/root.go4
2 files changed, 6 insertions, 6 deletions
diff --git a/cmd/platforms.go b/cmd/platforms.go
index a6a2359..d7e9d54 100644
--- a/cmd/platforms.go
+++ b/cmd/platforms.go
@@ -6,10 +6,10 @@ import (
func (i *Input) newPlatforms() map[string]string {
platforms := map[string]string{
- "ubuntu-latest": "node:12.20.1-buster-slim",
- "ubuntu-20.04": "node:12.20.1-buster-slim",
- "ubuntu-18.04": "node:12.20.1-buster-slim",
- "ubuntu-16.04": "node:12.20.1-stretch-slim",
+ "ubuntu-latest": "node:12-buster-slim",
+ "ubuntu-20.04": "node:12-buster-slim",
+ "ubuntu-18.04": "node:12-buster-slim",
+ "ubuntu-16.04": "node:12-stretch-slim",
"windows-latest": "",
"windows-2019": "",
"macos-latest": "",
diff --git a/cmd/root.go b/cmd/root.go
index 25f2b82..9b75b88 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -39,7 +39,7 @@ func Execute(ctx context.Context, version string) {
rootCmd.Flags().BoolP("graph", "g", false, "draw workflows")
rootCmd.Flags().StringP("job", "j", "", "run job")
rootCmd.Flags().StringArrayVarP(&input.secrets, "secret", "s", []string{}, "secret to make available to actions with optional value (e.g. -s mysecret=foo or -s mysecret)")
- rootCmd.Flags().StringArrayVarP(&input.envs, "env", "", []string{}, "env to make available to actions with optional value (e.g. --e myenv=foo or -s myenv)")
+ rootCmd.Flags().StringArrayVarP(&input.envs, "env", "", []string{}, "env to make available to actions with optional value (e.g. --env myenv=foo or --env myenv)")
rootCmd.Flags().StringArrayVarP(&input.platforms, "platform", "P", []string{}, "custom image to use per platform (e.g. -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04)")
rootCmd.Flags().BoolVarP(&input.reuseContainers, "reuse", "r", false, "reuse action containers to maintain state")
rootCmd.Flags().BoolVarP(&input.bindWorkdir, "bind", "b", false, "bind working directory to container, rather than copy")
@@ -303,7 +303,7 @@ func defaultImageSurvey(actrc string) error {
case "Medium":
option = "-P ubuntu-latest=catthehacker/ubuntu:act-latest\n-P ubuntu-20.04=catthehacker/ubuntu:act-20.04\n-P ubuntu-18.04=catthehacker/ubuntu:act-18.04\nubuntu-16.04=catthehacker/ubuntu:act-16.04"
case "Micro":
- option = "-P ubuntu-latest=node:12.20.1-buster-slim\n-P ubuntu-20.04=node:12.20.1-buster-slim\n-P ubuntu-18.04=node:12.20.1-buster-slim\n-P ubuntu-16.04=node:12.20.1-stretch-slim"
+ 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-P ubuntu-16.04=node:12-stretch-slim"
}
f, err := os.Create(actrc)