From 7dd3bf8b8b236f06d512b79877eaec07d9667be4 Mon Sep 17 00:00:00 2001 From: Nicolas M Date: Fri, 24 Mar 2023 15:50:45 +0100 Subject: [PATCH] +terragrunt --- projects/terragrunt.gruntwork.io/package.yml | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 projects/terragrunt.gruntwork.io/package.yml diff --git a/projects/terragrunt.gruntwork.io/package.yml b/projects/terragrunt.gruntwork.io/package.yml new file mode 100644 index 00000000..3113fa6f --- /dev/null +++ b/projects/terragrunt.gruntwork.io/package.yml @@ -0,0 +1,29 @@ +distributable: + url: https://github.com/gruntwork-io/terragrunt/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: gruntwork-io/terragrunt + +provides: + - bin/terragrunt + +dependencies: + terraform.io: '*' + +build: + script: | + go build -v -ldflags="$LDFLAGS" + mkdir -p "{{ prefix }}"/bin + mv terragrunt "{{ prefix }}"/bin + dependencies: + go.dev: ^1.18 + env: + LDFLAGS: + [-s, -w, "-X=main.VERSION={{ version }}"] + linux: + LDFLAGS: + - -buildmode=pie + +test: + test "$(terragrunt --version)" = "terragrunt version {{ version }}"