17 karma · joined Oct 9, 2018 (8y ago) · 3 submissions
1.
Magic Doesn‘t Happen, Especially Not in Business(republik.ch ↗)
30 points · by ramonrue · 4y ago · 12 comments
comment 5y ago · link · parent
machine <your GitLab domain> (e.g. gitlab.com) login <your GitLab id> password <your GitLab personal access token>
For the access token, you can also leverage Gitlab‘s CI Job Token.
What we do is an „echo $(netrc contents with $CI_JOB_TOKEN) > ~/.netrc“ in the pre-script in CI.
(https://stackoverflow.com/a/61257782 and https://docs.gitlab.com/ee/security/token_overview.html)