Skip to content

Commit

Permalink
Fix env var parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
dmattia committed Mar 29, 2024
1 parent 248a22c commit f066961
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 16 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@ on:
branches: [master]
tags: ["*"]

# run on PRs against master
pull_request:
branches: [master]

# manual trigger
workflow_dispatch:
inputs:
tag:
description: Build a container image for this git tag
required: true

permissions:
packages: write # ghcr access
contents: write # create releases
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=1.17.5
VERSION=1.17.6
PATH_BUILD=build/
FILE_COMMAND=terragrunt-atlantis-config
FILE_ARCH=$(shell go env GOOS)_$(shell go env GOARCH)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Then, make sure `terragrunt-atlantis-config` is present on your Atlantis server.

```hcl
variable "terragrunt_atlantis_config_version" {
default = "1.17.5"
default = "1.17.6"
}
build {
Expand Down Expand Up @@ -191,7 +191,7 @@ You can install this tool locally to checkout what kinds of config it will gener
Recommended: Install any version via go install:

```bash
go install github.com/transcend-io/terragrunt-atlantis-config@v1.17.5
go install github.com/transcend-io/terragrunt-atlantis-config@v1.17.6
```

This module officially supports golang versions v1.13, v1.14, v1.15, and v1.16, tested on CircleCI with each build
Expand Down
2 changes: 1 addition & 1 deletion cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func getEnvs() map[string]string {
m := make(map[string]string)

for _, env := range envs {
results := strings.SplitN(env, "=", 1)
results := strings.SplitN(env, "=", 2)
m[results[0]] = results[1]
}

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "github.com/transcend-io/terragrunt-atlantis-config/cmd"
// This variable is set at build time using -ldflags parameters.
// But we still set a default here for those using plain `go get` downloads
// For more info, see: http://stackoverflow.com/a/11355611/483528
var VERSION string = "1.17.5"
var VERSION string = "1.17.6"

func main() {
cmd.Execute(VERSION)
Expand Down

0 comments on commit f066961

Please sign in to comment.