Skip to content

Implement `publish-module` command

From gitlab!110493 (comment 1262287739)

Not blocking: This does seem like a great candidate for a gitlab-terraform publish-module 😉

Templates are only versioned together with GitLab itself (and effectively unversioned on GitLab.com), so if we ever change this line, then the only way for users to revert is to manually include the old command. If the entire script is just gitlab-terraform publish-module then they can easily revert by pinning the image version.

Implementation Details

  • Implement a gitlab-terraform publish-module command
    • the command should run what's in the Terraform/Base-Module.gitlab-ci.yml template - in particular the deploy job
    • it should be backwards compatible to that code w.r.t to the template (same variables etc.)
  • Use that command in the deploy job of the Terraform/Base-Module.gitlab-ci.yml job template

Note: this can be a candidate for https://gitlab.com/gitlab-org/quality/contributor-success/contributor-days/-/issues/1

Edited by Timo Furrer