How can I add symlink to file to gitlab repository?
Every time I run a pipeline from gitlab, the local symlink gets destroyed.
Any suggestions on how to create a symlink for a folder which resides inside of gitlab repo would be great.
You can store in a Git repo a symlink (special entry 12000), but, as seen in this test, that would make the GitLab pipeline fail.
See gitlab-ce issue 27542 (though it is for the particular case of .gitlab-ci.yml
being a symlink).
It is best if the pipeline first recreate the symlink, then process in its subsequent steps, with the normal build: regenerating it seems better than storing it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With