mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #50] Add ability to ignore files #30
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#30
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 @jclem on GitHub (Mar 18, 2019).
Original GitHub issue: https://github.com/nektos/act/issues/50
Currently,
actwill include the entire working directory in the container it builds (which does make sense in the context of a cloned repository, but not necessarily a local working copy).For example, I may have dependencies built for my host operating system (MacOS), but they need to be rebuilt inside the container. This works fine in Actions in production because the dependencies aren't checked into the repository. However, I can't see a way of not sending them to the built container with
actwithoutrming them (which slows down local development on my host).Perhaps there could be some sort of
.ignorefile that ignores files from the host, and also prevents those files from the container from being copied back to the host?@cplee commented on GitHub (Mar 18, 2019):
@jclem can you add them to your
.dockerignorefile?@jclem commented on GitHub (Mar 19, 2019):
I am pretty sure I've already tried that, and that they were built into the container, anyway. I will double-check.
@muuvmuuv commented on GitHub (Mar 8, 2020):
Having the same trouble.
.dockerignorelooks like that:@cplee commented on GitHub (Mar 8, 2020):
How does this sound? When copying files into the job container, ignore any path referenced in
.gitignorefiles. Would that solve your issues @muuvmuuv & @jclem ?@muuvmuuv commented on GitHub (Mar 9, 2020):
Of course but shouldn't the
.dockerignorework OOTB? I mean, having both to ignore files would be the "icing on the cake", since both can be different.@cplee commented on GitHub (Mar 9, 2020):
So
.dockerignoreis only helpful for the situations where we build an image for a local action of type docker and want to ignore things in the context of.github/workflows/...In this case, we want to avoid passing other files that may be outside that context, for example
node_modules.