From fc4c849fe3afb20ecbdb5f4ae1e148118eed9e45 Mon Sep 17 00:00:00 2001 From: "warren.veerasingam" Date: Mon, 8 Mar 2021 16:00:14 -0600 Subject: [PATCH] upgrade golang, add more install options --- .circleci/config.yml | 9 ++++----- .goreleaser.yml | 24 +++++++++++++++++++++--- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7a5e3841..fc3e9599 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,7 +5,7 @@ version: 2 jobs: build: docker: - - image: circleci/golang:1.13 + - image: circleci/golang:1.16 working_directory: /go/src/github.com/warrensbox/terraform-switcher @@ -31,7 +31,7 @@ jobs: release: docker: - - image: circleci/golang:1.13 + - image: circleci/golang:1.16 working_directory: /go/src/github.com/warrensbox/terraform-switcher @@ -52,9 +52,8 @@ jobs: git config user.name "warrensbox" git tag -a ${RELEASE_VERSION} -m "Release Version" git push origin ${RELEASE_VERSION} - curl -L https://git.io/goreleaser | VERSION=v0.99.0 bash -s -- --rm-dist - - + curl -sL https://git.io/goreleaser | bash + workflows: version: 2 diff --git a/.goreleaser.yml b/.goreleaser.yml index a8ef5d5a..62cd36dd 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -6,11 +6,24 @@ builds: - main: main.go binary: tfswitch goos: - - windows - darwin + - freebsd + - netbsd - linux + - windows goarch: + - 386 - amd64 + - arm + - arm64 + goarm: + - 6 + - 7 + ignore: + - goos: freebsd + goarch: arm64 + - goos: windows + goarch: arm checksum: name_template: '{{ .ProjectName }}_{{.Env.RELEASE_VERSION}}_checksums.txt' changelog: @@ -34,11 +47,16 @@ brew: # Default to project name name: tfswitch - # Reporitory to push the tap to. - github: + # GitHub/GitLab repository to push the formula to + tap: owner: warrensbox name: homebrew-tap + # Reporitory to push the tap to. + # github: + # owner: warrensbox + # name: homebrew-tap + # Allows you to set a custom download strategy. # Default is empty. #download_strategy: GitHubPrivateRepositoryReleaseDownloadStrategy