mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #2727] act doesn't work when setting shell to docker exec .... #1235
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#1235
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 @siferati on GitHub (Apr 10, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/2727
Bug report info
Command used with act
Describe issue
Most of my workflows require building a docker image, starting a container and then executing commands inside it.
docker build ...docker run ...docker exec ...I can run multiple commands inside the container via
docker exec foo bash -c "cmd1 && cmd2 && cmd3".But this is not manageable for complex operations, and so I tend to use
jobs.<job_id>.steps[*].shellinstead.For this to work it requires mounting
${{ runner.temp }}, as that's where the temporary file that contains the commands specified in therunkeyword is stored.Unfortunately, this doesn't seem to work for
act, as you can see from the logs below.I've tried instead mounting
/var/run/act/workflow, but that also doesn't work as it tries to mount from the host system instead of the docker container.And of course that folder does not exist on the host system.
I guess it's related with running docker inside docker...
I've attached a workflow below with a minimum example.
How can I make
actwork for my use case?Workflow content
Relevant log output
@siferati commented on GitHub (May 13, 2025):