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-modulethen they can easily revert by pinning the image version.
Implementation Details
- Implement a
gitlab-terraform publish-modulecommand- the command should run what's in the
Terraform/Base-Module.gitlab-ci.ymltemplate - in particular thedeployjob - it should be backwards compatible to that code w.r.t to the template (same variables etc.)
- the command should run what's in the
- Use that command in the
deployjob of theTerraform/Base-Module.gitlab-ci.ymljob template
Note: this can be a candidate for https://gitlab.com/gitlab-org/quality/contributor-success/contributor-days/-/issues/1
Edited by Timo Furrer