Skip to content

Commit

Permalink
upgrade golang, add more install options
Browse files Browse the repository at this point in the history
  • Loading branch information
warrensbox committed Mar 8, 2021
1 parent 93768e4 commit fc4c849
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down
24 changes: 21 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit fc4c849

Please sign in to comment.