mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #796] Issue: -P seems to be ignored #495
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#495
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gdanov on GitHub (Sep 6, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/796
how to reproduce:
brew install actruns-on: ubuntu-20.04-P ubuntu-18.04=nektos/act-environments-ubuntu:18.04 ubuntu-20.04=ghcr.io/catthehacker/ubuntu:full-20.04-P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:full-20.04@catthehacker commented on GitHub (Sep 6, 2021):
correct syntax is
@gdanov commented on GitHub (Sep 6, 2021):
it was completely ignored the fact that at start-up my entry is ignored and wrong environment is used.
@catthehacker commented on GitHub (Sep 6, 2021):
Nothing was ignored, latest
actrelease doesn't include my images (https://github.com/nektos/act/pull/766) and onlyubuntu-18.04was available before that.@gdanov commented on GitHub (Sep 6, 2021):
let me try again:
when I provide
-P ubuntu-18.04=nektos/act-environments-ubuntu:18.04 -P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:act-20.04in the ~/.actrc fileand run a job that requires ubuntu-20 (regular is ok)
I see
ImageOS:ubuntu20in the logsBUT the build fails with
::error::Unable to locate executable file: docker. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.If I have only the ubuntu-20 -P setting then the job works.
@catthehacker commented on GitHub (Sep 6, 2021):
No idea, but you could follow the issue template and then I might be able to find out.
@catthehacker commented on GitHub (Sep 6, 2021):
.actrcis newline delimited so you need to have@gdanov commented on GitHub (Sep 6, 2021):
Thanks. That works. So, basically it seems that
when no -P is provided for non-default platform required in action's
run-on:then act silently uses the default one?
@catthehacker commented on GitHub (Sep 6, 2021):
Yes, that's correct