FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit d0184c19 authored by Dr Rich Wareham's avatar Dr Rich Wareham
Browse files

Automatically publish tagged releases to the GitLab terraform registry

Closes #1
parent 1346223e
No related branches found
No related tags found
1 merge request!3Automatically publish tagged releases to the GitLab terraform registry
Pipeline #106038 failed
include:
- project: 'uis/devops/continuous-delivery/ci-templates'
file: '/terraform-module-publish.yml'
stages:
- test
- publish
# The "test" job will run the following tests:
#
# Terraform's "fmt" utility does not request any changes (i.e. a code lint)
......@@ -9,3 +17,12 @@ test:
script:
# Run terraform's format checker.
- terraform fmt -check -diff .
# Publish any tagged releases.
publish:
extends: .terraform_module_publish
stage: publish
variables:
TERRAFORM_MODULE_SYSTEM: google
needs:
- test
......@@ -4,6 +4,11 @@ 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).
## [1.0.2] - 2021-08-05
### Added
- Added required version of terraform including terraform 1.0.
- Publish modules to terraform registry.
## [1.0.1] - 2021-07-16
### Changed
- Added support to Cloud Function egress settings configuration.
......
......@@ -5,8 +5,9 @@ This module is best used for small scripts with static configuration, such as up
## Versioning
The `master` branch contains the tip of development and corresponds to the `v1`
branch. Each release is tagged with its bare version number.
The `master` branch contains the tip of development. Each release is tagged with
its bare version number. When a new tag is added, the module is automatically
published to the infrastructure registry.
## Required APIs and services
......@@ -28,7 +29,8 @@ The following is an example of a basic Python script which can be deployed as a
```tf
module "hello-world" {
source = "..."
source = "gitlab.developers.cam.ac.uk/uis/gcp-function/google"
version = "~> 1.0"
# Name used to form resource names and human readable description.
name = "hello-world-function"
......
# versions.tf defines minimum provider versions for the module
terraform {
# Minimum provider versions.
required_providers {
google = "~> 3.60"
google-beta = "~> 3.60"
}
# Minimum terraform version. We support 0.13 through 1.x.
required_version = ">= 0.13.0, < 2.0.0"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment