mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #1994] Add a CLI option for specifying runner mounts (bind/volume/tmpfs) #955
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#955
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 @jenseng on GitHub (Sep 8, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1994
Act version
0.2.50
Feature description
It would be nice to be able to specify mounts to be used by the runner containers. This would be separate from container job volumes, the idea here is this would solely be a local/CLI thing that would affect any container launched by act.
Something like:
The scenario is I have some sensitive data (e.g. credential files) that I don't want to include in my custom images. I'm looking to achieve parity with my actual self-hosted GitHub runners where these credentials automatically injected. If I could specify a bind mount, I could make this data available in the runner container, which would allow me to use the exact same images as my self-hosted GitHub runners.
For my use case I mainly need bind mounts, but this could also be useful for other mount types (e.g. tmpfs, etc), so I just used the docker mount syntax in my example. I didn't see a way to achieve this currently, but do let me know if I'm missing something!
If this feature seems reasonable to you, I'm happy to take a stab at a PR, conceptually it feels fairly straightforward to plumb mount configuration down to the runner containers.
@jenseng commented on GitHub (Sep 8, 2023):
Aha, looks like this can be done today with
--container-options🥳