https://github.com/kitos9112/terragrunt-gitlab-cicd-config
Produces a suitable .gitlab-ci.yml file from a Golang TXT Template to work as input for a parent/child triggered GitLab CICD pipeline.
https://github.com/kitos9112/terragrunt-gitlab-cicd-config
cicd gitlab gitlab-ci golang terraform terragrunt
Last synced: about 1 month ago
JSON representation
Produces a suitable .gitlab-ci.yml file from a Golang TXT Template to work as input for a parent/child triggered GitLab CICD pipeline.
- Host: GitHub
- URL: https://github.com/kitos9112/terragrunt-gitlab-cicd-config
- Owner: kitos9112
- Created: 2021-02-08T22:56:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-08-21T16:12:27.000Z (about 2 months ago)
- Last Synced: 2025-08-21T19:01:49.622Z (about 2 months ago)
- Topics: cicd, gitlab, gitlab-ci, golang, terraform, terragrunt
- Language: Go
- Homepage:
- Size: 15.7 MB
- Stars: 10
- Watchers: 0
- Forks: 6
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# terragrunt-gitlab-cicd-config
Heavily inspired on [Terragrunt Atlantis Configuration](https://github.com/transcend-io/terragrunt-atlantis-config) - This will read a [Terragrunt-like directory layout](https://github.com/gruntwork-io/terragrunt-infrastructure-live-example), 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](test/inputs/.gitlab-ci.yml.tpl)
```bash
> 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-configFlags:
-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.
```- [terragrunt-gitlab-cicd-config](#app)
- [Get it](#get-it)
- [Use it](#use-it)
- [Examples](#examples)## Get it
Using go get:
```bash
go get -u github.com/kitos9112/terragrunt-gitlab-cicd-config
```Or [download the binary](https://github.com/kitos9112/terragrunt-gitlab-cicd-config/releases/latest) from the releases page.
```bash
# 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
```text
terragrunt-gitlab-cicd-config [OPTIONS] [COMMAND [ARGS...]]
/bin/sh: terragrunt-gitlab-cicd-config: command not found
```### Examples
WIP