diff --git a/.goreleaser.yml b/.goreleaser.yml index 809aefc..a98c54a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,17 +1,18 @@ project_name: astro -archive: - format_overrides: - - goos: darwin - format: zip - replacements: - amd64: 64-bit - 386: 32-bit - darwin: macOS +archives: + - format_overrides: + - goos: darwin + format: zip + replacements: + amd64: 64-bit + 386: 32-bit + darwin: macOS before: hooks: - go mod download builds: - - binary: astro + - id: astro + binary: astro main: ./astro/cli/astro/main.go env: - GO111MODULE=on @@ -20,6 +21,14 @@ builds: goarch: 386 ldflags: - -s -w -X github.com/uber/astro/astro/cli/astro/cmd.version={{.Version}} -X github.com/uber/astro/astro/cli/astro/cmd.commit={{.ShortCommit}} -X github.com/uber/astro/astro/cli/astro/cmd.date={{.Date}} + - id: tvm + binary: tvm + main: ./astro/tvm/cli/tvm/main.go + env: + - GO111MODULE=on + ignore: + - goos: darwin + goarch: 386 changelog: sort: asc filters: diff --git a/README.md b/README.md index 6a05e3f..6d9d9b7 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,9 @@ This will install a binary called `astro` in your `$GOPATH/bin`. Alternatively, you can download precompiled binaries from the [Github releases page](https://github.com/uber/astro/releases). +Note that from version 0.6.0 `tvm`, a tool to download and install specific versions of Terraform for your platforms, +is packaged together with astro. + **Configuration** Astro looks for a configuration file called `astro.yaml` in the current or parent directories. It is recommended to place this file in the same top-level directory of your project where the Terraform code exists (e.g. `terraform/astro.yaml`).