Replies: 1 comment 3 replies
-
You need maintainer on the group and project you want variables from right? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To simplify my job with your awesome tool (thank a lot guys!) I develop a little bash script. The goal is to retrieve gitlab CI/CD variables and store them in the gitlab-ci-local config. Here is the usage:
The idea is quite simple: when I work on a CI I need the variables of the project itself and the variables of the parent groups. To do this, I run
gcl-config
specifying whether it is a-p
project or a-g
group and give it the id. Next, the script fetches the gitlab API to retrieve the CI/CD variables, and finally refactors the JSON API response to match the gitlab-ci-local yaml configuration.I know it's bash, and you are developing this tool in TS, but if you are interrested in any way let me know, and I will share my code.
Beta Was this translation helpful? Give feedback.
All reactions