Skip to content

fix: publish Terraform modules only for full x.y.z tags

What

Publish Terraform modules only for full x.y.z tags.

Why

Terraform module versions must be x.y.z: https://developer.hashicorp.com/terraform/registry/modules/publish#requirements

Publishing modules with truncated tags fails:

$ curl --fail-with-body \ # collapsed multi-line command
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5980  100    37  100  5943    111  17875 --:--:-- --:--:-- --:--:-- 17957
curl: (22) The requested URL returned error: 400

https://gitlab.com/gitlab-com/gl-infra/terraform-modules/google/gke-argocd-bootstrap/-/jobs/11273478556

Merge request reports

Loading