Skip to content

Produces a suitable .gitlab-ci.yml file from a Golang TXT Template to work as input for a parent/child triggered GitLab CICD pipeline.

Notifications You must be signed in to change notification settings

kitos9112/terragrunt-gitlab-cicd-config

Repository files navigation

terragrunt-gitlab-cicd-config

Heavily inspired on Terragrunt Atlantis Configuration - This will read a Terragrunt-like directory layout, interpret all local Terragrunt config blocks while parsing an input TXT Golang template that should effectively mimic a .gitlab-ci.yml file.

The actual input file should be a valid .gitlab-ci.yml file with Golang. An example can be found here

> terragrunt-gitlab-cicd-config --help
By taking a Golang TXT template file, it generates GitlabCI Config for Terragrunt IaC live style projects maintained in a mono-repo fashion.

Usage:
  terragrunt-gitlab-cicd-config [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  generate    Creates GitLab CICD Dynamic configuration
  help        Help about any command
  version     Version of terragrunt-gitlab-cicd-config

Flags:
  -h, --help               help for terragrunt-gitlab-cicd-config
  -v, --verbosity string   Log level (debug, info, warn, error, fatal, panic (default "info")

Use "terragrunt-gitlab-cicd-config [command] --help" for more information about a command.

Get it

Using go get:

go get -u github.com/kitos9112/terragrunt-gitlab-cicd-config

Or download the binary from the releases page.

# Linux x86_64
curl -L https://github.com/kitos9112/terragrunt-gitlab-cicd-config/releases/download/2.0.1/terragrunt-gitlab-cicd-config_2.0.1_linux_x86_64.tar.gz | tar xz
# Linux arm64
curl -L https://github.com/kitos9112/terragrunt-gitlab-cicd-config/releases/download/2.0.1/terragrunt-gitlab-cicd-config_2.0.1_linux_arm64.tar.gz | tar xz

# OS X x86_64
curl -L https://github.com/kitos9112/terragrunt-gitlab-cicd-config/releases/download/2.0.1/terragrunt-gitlab-cicd-config_2.0.1_osx_x86_64.tar.gz | tar xz
# OS X arm64
curl -L https://github.com/kitos9112/terragrunt-gitlab-cicd-config/releases/download/2.0.1/terragrunt-gitlab-cicd-config_2.0.1_osx_arm64.tar.gz | tar xz

# Windows x86_64
curl -LO https://github.com/kitos9112/terragrunt-gitlab-cicd-config/releases/download/2.0.1/terragrunt-gitlab-cicd-config_2.0.1_windows_x86_64.zip
unzip terragrunt-gitlab-cicd-config_2.0.1_windows_x86_64.zip

Use it


terragrunt-gitlab-cicd-config [OPTIONS] [COMMAND [ARGS...]]

/bin/sh: terragrunt-gitlab-cicd-config: command not found

Examples

WIP