Permitting Git to write to a file outside of Docker container & alternatives

  docker, git, git-post-receive, gitea, move


Git repo of [Gitea Docker container] git-checkouts files to /docker/gitea/, then moves files into locally-hosted website [nginx Docker container] /docker/www/

My setup:

  1. Files are pushed to Gitea repo
  2. Gitea instance with post-receive & git-checkout outputs to
    /docker/gitea/ directory
  3. (!) Post-receive then executes to move website data from
    /docker/gitea/ to /docker/www/

This is where I am stuck, as is never executed by post-receive; script is also set to proper execution permissions. If there exists a more streamlined approach to this, let me know.

Thanks in advance for any help.

Source: Docker Questions