act
act copied to clipboard
Error: Reject platforms name contained "="
Bug report info
act version: 0.2.57-4-gcd40f3f-dirty
GOOS: linux
GOARCH: amd64
NumCPU: 16
Docker host: DOCKER_HOST environment variable is not set
Sockets found:
/var/run/docker.sock
Config files:
Build info:
Go version: go1.21.6
Module path: command-line-arguments
Main version:
Main path:
Main checksum:
Build settings:
-buildmode: exe
-compiler: gc
-ldflags: -X main.version=0.2.57-4-gcd40f3f-dirty
DefaultGODEBUG: panicnil=1
CGO_ENABLED: 1
CGO_CFLAGS:
CGO_CPPFLAGS:
CGO_CXXFLAGS:
CGO_LDFLAGS:
GOARCH: amd64
GOOS: linux
GOAMD64: v1
Docker Engine:
Engine version: 24.0.6
Engine runtime: runc
Cgroup version: 1
Cgroup driver: cgroupfs
Storage driver: overlay2
Registry URI: https://index.docker.io/v1/
OS: Docker Desktop
OS type: linux
OS version:
OS arch: x86_64
OS kernel: 5.15.133.1-microsoft-standard-WSL2
OS CPU: 16
OS memory: 15374 MB
Security options:
name=seccomp,profile=unconfined
Command used with act
act -P IMAGE=debian-12=nektos/act-environments-ubuntu:22.04
Describe issue
If we attempt use custom runner label IMAGE=debian-12 at self-hosted-runner, act failed and puts this error log.
I guess that -P parameter parser is unsupported value containd multi "=" string.
[test workflow/demo] 🚧 Skipping unsupported platform -- Try running with `-P IMAGE=debian-12=...
Link to GitHub repository
No response
Workflow content
name: GitHubActions on GitHub Enterprise Server
on:
workflow_dispatch:
jobs:
demo:
runs-on: [ IMAGE=debian-12 ]
steps:
- name:
run: |
echo "konnichi wa"
Relevant log output
act -v
DEBU[0000] Conditional GET for notices etag=492cc8e5-303b-4af6-ab7f-7eddf714ee2f
DEBU[0000] Loading environment from /work/.env
DEBU[0000] Loading action inputs from /work/.input
DEBU[0000] Loading secrets from /work/.secrets
DEBU[0000] Loading vars from /work/.vars
DEBU[0000] Evaluated matrix inclusions: map[]
DEBU[0000] Loading workflows from '/work/.github/workflows'
DEBU[0000] Loading workflows recursively
DEBU[0000] Found workflow 'main.yml' in '/work/.github/workflows/main.yml'
DEBU[0000] Reading workflow '/work/.github/workflows/main.yml'
DEBU[0000] Preparing plan with all jobs
DEBU[0000] Using the only detected workflow event: workflow_dispatch
DEBU[0000] Planning jobs for event: workflow_dispatch
? Please choose the default image you want to use with act:
- Large size image: ca. 17GB download + 53.1GB storage, you will need 75GB of free disk space, snapshots of GitHub Hosted Runners without snap and pulled docker images
- Medium size image: ~500MB, includes only necessary tools to bootstrap actions and aims to be compatible with most actions
- Micro size image: <200MB, contains only NodeJS required to bootstrap actions, doesn't work with all actions
Default image and other options can be changed manually in ~/.actrc (please refer to https://github.com/nektos/act#configuration for additional information about file structure) [Use arrows to move, type to filter, ? for more help]
Large
DEBU[0000] Saving notices etag=492cc8e5-303b-4af6-ab7f-7eddf714ee2f
DEBU[0000] No new notices
Additional information
No response
nektos/act-environments-ubuntu:22.04
Does this image even exist? I cannot remember it has been updated past 18.04
Sorry to have confused you. As you say, that container image does not exist. In fact it is supposed to be set up on my local machine where I manage it.
Issue is stale and will be closed in 14 days unless there is new activity