You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2024. It is now read-only.
The reason for this is in regards to when the volume mount happens. In the second scenario the entrypoint.sh script runs after the volume mount, in which case drone mounts ~/.netrc which is used for GitHub access. In the first case, the ~/.netrc file is not yet mounted when CMD ["/entrypoint.sh"] is run within the Docker image, thus there is not GitHub access for the clone to work.
To verify this, I swapped out CMD ["/entrypoint.sh"] with CMD ["/entrypoint.sh && cat ~/.netrc"] in one of the Dockerfiles and got:
We should switch to using environment variables to generate the ~/.netrc file.