Skip to content

Commit

Permalink
fix goreleaser; bump go
Browse files Browse the repository at this point in the history
  • Loading branch information
boz committed Feb 8, 2020
1 parent 86a06d3 commit 662d013
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
13 changes: 7 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ builds:
env:
- CGO_ENABLED=0

brew:
github:
owner: boz
name: homebrew-repo
homepage: "https://github.com/boz/kail"
description: "kubernetes tail - pod log viewer"
brews:
-
github:
owner: boz
name: homebrew-repo
homepage: "https://github.com/boz/kail"
description: "kubernetes tail - pod log viewer"

checksum:
name_template: 'checksums.txt'
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

go:
- "1.12"
- "1.13"
- tip

sudo: required
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/boz/kail

go 1.12
go 1.13

require (
github.com/boz/go-lifecycle v0.1.0
Expand Down
10 changes: 7 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -o pipefail

if [ "$TRAVIS_REPO_SLUG" != "boz/kail" -o \
"$TRAVIS_EVENT_TYPE" != "push" -o \
"$TRAVIS_GO_VERSION" != "1.12" ]; then
"$TRAVIS_GO_VERSION" != "1.13" ]; then
exit 0
fi

Expand All @@ -14,6 +14,11 @@ if [ "$TRAVIS_BRANCH" != "master" -a \
exit 0
fi

# test goreleaser
curl -sL https://git.io/goreleaser > goreleaser.sh
chmod 0755 goreleaser.sh
./goreleaser.sh check

docker login -u "$DOCKERHUB_USERNAME" -p "$DOCKERHUB_PASSWORD"

if [ "$TRAVIS_BRANCH" == "master" ]; then
Expand All @@ -23,5 +28,4 @@ fi

DOCKER_TAG="$TRAVIS_TAG" make image-push

curl -sL https://git.io/goreleaser | \
GITHUB_TOKEN="$GITHUB_REPO_TOKEN" bash
GITHUB_TOKEN="$GITHUB_REPO_TOKEN" ./goreleaser.sh

0 comments on commit 662d013

Please sign in to comment.