tic icon indicating copy to clipboard operation
tic copied to clipboard

GitLab CI support

Open artemklevtsov opened this issue 4 years ago • 3 comments

Hi, Are there any plans to support GitLab CI? Intro to CI: https://docs.gitlab.com/ee/ci/ List of the defined environment variables: https://docs.gitlab.com/ee/ci/variables/#list-all-environment-variables

artemklevtsov avatar Sep 11 '20 03:09 artemklevtsov

No immediate plans so far as most traffic runs on GHA nowadays. However, supporting GitLab CI would definitely be a great addition.

Porting all functionality (API auth calls, updating templates, etc.) is a big task. We would like to get the package on CRAN first before adding another provider.

If you are keen, we're open to PR / proposals.

pat-s avatar Sep 11 '20 07:09 pat-s

Thank you for the quick reply. What exactly should we implement for this? Also there's package on CRAN which provide access to the GitLab API: gitlabr.

artemklevtsov avatar Sep 11 '20 07:09 artemklevtsov

Thanks, I am aware of {gitlabr}.

  1. Templates following our current style for GHA (installing deps, caching R packages)
  2. Auth helpers for getting owner and repo information to set up deployments
  3. Deployment init support (SSH key pair creation), see use_ghactions_deploy()
  4. Template update support as done by tic::update_yml()

One could start with a template for GitLab CI, then add SSH key and template updating support.

pat-s avatar Sep 11 '20 08:09 pat-s