Skip to content

Commit

Permalink
Update Go version, dependencies, and GoReleaser
Browse files Browse the repository at this point in the history
Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
  • Loading branch information
unguiculus committed Mar 21, 2020
1 parent 89c97cd commit a20ea87
Show file tree
Hide file tree
Showing 6 changed files with 270 additions and 176 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
shellcheck -x tag.sh
build:
docker:
- image: golang:1.12-alpine
- image: golang:1.14-alpine
steps:
- setup_remote_docker
- run:
name: Install tools
command: |
apk add bash build-base ca-certificates curl docker git openssh
curl -SLO https://github.com/goreleaser/goreleaser/releases/download/v0.104.0/goreleaser_Linux_x86_64.tar.gz
curl -SLO https://github.com/goreleaser/goreleaser/releases/download/v0.129.0/goreleaser_Linux_x86_64.tar.gz
mkdir -p /usr/local/goreleaser
tar -xzf goreleaser_Linux_x86_64.tar.gz -C /usr/local/goreleaser
ln -s /usr/local/goreleaser/goreleaser /usr/local/bin/goreleaser
Expand Down
14 changes: 7 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ builds:
-X github.com/helm/chart-releaser/cr/cmd.Version={{ .Tag }}
-X github.com/helm/chart-releaser/cr/cmd.GitCommit={{ .Commit }}
-X github.com/helm/chart-releaser/cr/cmd.BuildDate={{ .Date }}
archive:
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
archives:
- format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ main() {
pushd "$SCRIPT_DIR" > /dev/null

go mod download
go test ./...
go test ./... -race
goreleaser "${goreleaser_args[@]}"

popd > /dev/null
Expand Down
18 changes: 7 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
module github.com/helm/chart-releaser

go 1.12
go 1.14

require (
github.com/Songmu/retry v0.0.1
github.com/google/go-github v17.0.0+incompatible
github.com/google/go-querystring v1.0.0 // indirect
github.com/Songmu/retry v0.1.0
github.com/google/go-github/v30 v30.0.0
github.com/mitchellh/go-homedir v1.1.0
github.com/pkg/errors v0.8.1
github.com/spf13/cobra v0.0.5
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v0.0.6
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.3.2
github.com/spf13/viper v1.6.2
github.com/stretchr/testify v1.4.0
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
helm.sh/helm/v3 v3.0.3
helm.sh/helm/v3 v3.1.2
)

// Transitive requirement from Helm.
replace github.com/docker/docker => github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0
Loading

0 comments on commit a20ea87

Please sign in to comment.