FAQ | This is a LIVE service | Changelog

Skip to content
Commits on Source (2)
  • Dr Rich Wareham's avatar
    feat(terraform-module): allow composition with Auto DevOps modules · b47764de
    Dr Rich Wareham authored
    The stock `Terraform-Module` template from GitLab defines its own stages
    which are _almost_ compatible with Auto DevOps but not quite.
    
    Issue #59 initially proposed re-working `terraform-module.yml` to be
    based on the base template but, really, the only thing that needed to be
    done was to move the `fmt` job from the `validate` stage to `test`.
    
    (Arguably `fmt` could be replaced by stuff from
    `/auto-devops/terraform-pipeline.yml` but that's for another day.)
    
    Instead of copy-pasting the module, simply import the Auto DevOps stages
    and move the `fmt` job.
    
    While we're here, and because this is supposed to be "the One Template
    To Rule Them All" for terraform modules, also add in a default
    `workflow` template *a la* `common-pipeline.yml`.
    b47764de
  • Ryan Kowalewski's avatar
    Merge branch 'issue-59-terraform-module' into 'master' · 2b223ec9
    Ryan Kowalewski authored
    feat(terraform-module): allow composition with Auto DevOps modules
    
    Closes #59
    
    See merge request !70
    2b223ec9
......@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [3.4.0] - 2024-01-03
### Changed
- `terraform-module.yml` now uses standard Auto DevOps stages so it can be
composed with other templates.
## [3.3.0] - 2023-11-29
### Fixed
......
......@@ -5,8 +5,17 @@
# See https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Terraform-Module.gitlab-ci.yml
include:
# The Terraform-Module template re-defines stages and so *must* be included before auto-devops-stages.yml
- template: Terraform-Module.gitlab-ci.yml
- local: '/auto-devops/check-latest-tag-in-changelog.yml'
- local: "/auto-devops-stages.yml"
- local: "/auto-devops/check-latest-tag-in-changelog.yml"
# Fail-safe workflow rules if none are specified. These can be overridden by CI configuration which includes us.
- template: Workflows/Branch-Pipelines.gitlab-ci.yml
# Since we redefine the stages by including auto-devops-stages.yml, move the fmt job to a more appropriate stage.
fmt:
stage: test
variables:
TERRAFORM_MODULE_SYSTEM: devops