Provide originating repository information for mirrored CI/CD
Problem to solve
I want to upload build artifacts to my originating repository (e.g. GitHub) while using GitLab's mirroring CI/CD. I can do this by hard-coding GitHub repository information into my .gitlab-ci.yml
file, but that is suboptimal.
Proposal
I would like GitLab to provide (probably through environment variables) information about which repository a CI/CD request is coming from. When originated through a "mirrored" event (e.g. I create a new tag on GitHub) I would like to have something like $CI_MIRROR_ORIGIN
set to the URL of the GitHub repository, or something similar. This variable could be empty for non-mirrored events. This would help greatly with things like using ghr
to automatically upload build artifacts to GitHub releases on tags.
Edited by Elliot Saba