mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #692] Issue: act -P flag not working to switch platform/image #439
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#439
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 @danbadds38 on GitHub (May 19, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/692
Originally assigned to: @catthehacker on GitHub.
Act version
Expected behavior
Actual behavior
uses image=node:12.20.1-buster-slim
~/.actrc dumpWorkflow and/or repository
workflow
Steps to reproduce
Choose Large Image
actoutputLog
@catthehacker commented on GitHub (May 22, 2021):
Can please post full workflow you are trying to run?
@github-actions[bot] commented on GitHub (Jun 22, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@mshriver commented on GitHub (Jul 1, 2021):
@catthehacker I'm also seeing this behavior running against 0.2.23. Both choosing large when prompted, or using the -P option to run with the largest image available.
Observing this trying to run the workflow being updated in this PR with
act pull_request:https://github.com/SatelliteQE/broker/pull/116/files#diff-63bd641104d10e25f141d518a16b22a151d125e12701df2f9e79734b23b90188
With no
~/.actrcfile defined:With selecting
Largewhen prompted at runtime:With
~/.actrchaving been written by the previous run:@ChristopherHX commented on GitHub (Jul 2, 2021):
@mshriver You haven't specified
ubuntu-18.04orubuntu-20.04in your workflow, but usedubuntu-latest.The bug?
There is no large image for
ubuntu-latestso it seems to use the small one. Maybe change the image survey of act to not choose the small image if large was selected, use medium instead forubuntu-latest,ubuntu-18.04andubuntu-20.04or remove the defaults (small image) and show as unsupported in the log insteadNot affected:
Fix your parameter to match runs-on of your workflow
You can use multiple images in multiple jobs and
ubuntu-latestis not 100% equal toubuntu-18.04orubuntu-20.04and that changes every two years.@catthehacker commented on GitHub (Jul 2, 2021):
that's the problem with large image, it's heavily outdated and it's only ubuntu 18.04, I'm still working on making an equivalent to that
@mshriver commented on GitHub (Jul 2, 2021):
@ChristopherHX Good spot, thanks! Adjusting my argument so that my workflow's reference matches the argument reference (
ubuntu-latest) gotactto use the correct image.@github-actions[bot] commented on GitHub (Aug 2, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@catthehacker commented on GitHub (Aug 9, 2021):
largeimages have been updated and includeubuntu-latest/ubuntu-20.04as for the original issue, I'm unsure why that happens, I suspect wrong platform used in workflow but until that is confirmed by author, I'm closing the issue
@sminf commented on GitHub (Nov 14, 2021):
Configure multiple ubuntu images in
~/.actrc.