I’m running gitea action runner in docker container in my NAS, the workflow started by action runner will be in a separate job container, I want to copy the data generated by the job container back to some folders in my NAS , how should I do that?
I’ve mounted my NAS folder in action runner docker-compose.yml, but seems job container can’t access the mounted folder.
I am trying the same, the act-runner runs in a docker on a VPS.
The folder is mapped successfully into the container via
docker run [...] -v /var/srv/webroot:/webroot -d docker.io/gitea/act_runner:0.6.1
I verified the mapping in
docker exec -it act-runner bash
And I can write (touch/cp/rm) to the filesystem, and the modifications are seen from outside.
When I try to copy from the workflow though, the action errors “no such file or directory”:
cp: target '/webroot/staging/': No such file or directory
❌ Failure - Main Deploy to staging
exitcode '1': failure
This is the action:
- name: Deploy to staging
if: ${{ gitea.ref == 'refs/heads/staging' }}
run: |
hugo --baseURL https://staging.example.com/
rm -rf /webroot/staging/*
cp -a public/* /webroot/staging/
Do I need to map the path into the workspace at all? Is that even possible?
Thanks for advice!