EN | RU
This Bash script allows to transfer (by copying) CI/CD variables from one GitLab project to another (GitLabs can differ too).
bash;curlandjqpackages;- Both project must exist;
- Access tokens for them must have role
Maintainerand scopeapi.
transfer_gitlab_ci_cd_variables [--proxy <proxy_url>] <gitlab_project_1_url> <gitlab_project_1_api_token> <gitlab_project_2_url> <gitlab_project_2_api_token>transfer_gitlab_ci_cd_variables https://gitlab.com/someuser/someproject ACCESS_TOKEN_1 https://othergitlab.com/someotheruser/someotherproject ACCESS_TOKEN_2With proxy:
transfer_gitlab_ci_cd_variables --proxy http://192.168.0.123:3128 https://gitlab.com/someuser/someproject ACCESS_TOKEN_1 https://othergitlab.com/someotheruser/someotherproject ACCESS_TOKEN_2Feel free to contribute via pull requests or issues!