Volumes not being mounted in Actions containers #329
Labels
No Label
kind
bug
kind
build
kind/compatible
kind
dependencies
kind
docs
kind
enhancement
kind
feature
kind
help wanted
kind
proposal
kind
refactor
related
act
related
environment
related
exec
related
gitea
related
workflow
reviewed
confirmed
reviewed
duplicate
reviewed
invalid
reviewed
needs feedback
reviewed
wontfix
reviewed
workaround
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/act_runner#329
Loading…
Reference in New Issue
Block a user
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?
I'm using
gitea/act_runner:latest
since it became available.I'm having some trouble getting an extra volume mounted in the container created to run the action.
See this:
I get:
--
Also, if I put in the "config.yaml",
I get the same:
--
In Portainer, these are the volumes I see mounted:
Aaaahhhhhhh... I've just noticed there's a new option here:
https://gitea.com/gitea/act_runner/src/branch/main/internal/pkg/config/config.example.yaml
Got it resolved now!!
Hey @ghnp5
Unfortunately, I cannot reproduce your success 😥
My workflow both specifies
volumes
andvalid_volumes
like so:Still, when I run the action, I get
And also
ls
on that folder fails, indicating that volume generation failed.I'm using
act_runner:latest
.Do you have something set in the
config.yml
? Anything I might have overlooked?Thank you :)
I wasn't successful adding
valid_volumes
viadocker-compose.yml
.Then I tried putting it into the config like so:
Then I had the config added as environment variable and volume so the
act_runner
container could access it:Still, it is important to have the volumes added to the runner instance - I used the action script to do so:
This did the trick. The error message is gone and
docker volume ls
shows it accordingly while the action executes.No idea why it wouldn't work in the
docker-compose.yml
, though.A blog article walking through jekyll build with Gitea Actions, having artifacts saved using a volume will follow soon.
This is by far quicker for my application than using
upload-artifact
anddownload-artifact
actions.Cheers
Schallbert
BTW #407 helped me find the correct syntax (valid_volume as string, volumes as list items)