From 745d8040c2abba75be1e08db2d08a4f6192c43dc Mon Sep 17 00:00:00 2001 From: Kevin Chen Date: Mon, 18 Sep 2023 22:26:57 -0400 Subject: [PATCH] +atlantis -- Terraform Pull Request Automation --- projects/runatlantis.io/package.yml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 projects/runatlantis.io/package.yml diff --git a/projects/runatlantis.io/package.yml b/projects/runatlantis.io/package.yml new file mode 100644 index 00000000..4ca27bd6 --- /dev/null +++ b/projects/runatlantis.io/package.yml @@ -0,0 +1,36 @@ +distributable: + url: https://github.com/runatlantis/atlantis/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: runatlantis/atlantis + +provides: + - bin/atlantis + +build: + dependencies: + go.dev: ^1.21 + script: | + go mod download + mkdir -p "{{ prefix }}"/bin + go build -v -trimpath -ldflags="$LDFLAGS" -o $BUILDLOC . + env: + GOPROXY: https://proxy.golang.org,direct + GOSUMDB: sum.golang.org + GO111MODULE: on + CGO_ENABLED: 0 + BUILDLOC: '{{prefix}}/bin/atlantis' + LDFLAGS: + - -s + - -w + - -X main.version={{version}} + linux: + # or segmentation fault + # fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575 + LDFLAGS: + - -buildmode=pie + +test: + script: + - atlantis version | grep {{version}}