Skip to content

Commit

Permalink
Publish podinfo CLI to GitHub with goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Sep 9, 2018
1 parent fbcab6c commit 457a56f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -18,3 +18,4 @@
release/
build/
gcloud/
dist/
12 changes: 11 additions & 1 deletion .goreleaser.yml
@@ -1,11 +1,21 @@
builds:
- main: ./cmd/podcli
binary: podcli
ldflags: -s -w -X github.com/stefanprodan/k8s-podinfo/pkg/version.REVISION={{.Commit}}
goos:
- windows
- darwin
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: 386
archive:
format: tar.gz
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- none*
18 changes: 8 additions & 10 deletions .travis.yml
Expand Up @@ -2,7 +2,7 @@ sudo: required
language: go

go:
- 1.9.x
- 1.11.x

services:
- docker
Expand All @@ -14,19 +14,10 @@ addons:

before_install:
- make dep
# - curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
# - mkdir -p .bin; mv ./kubectl .bin/kubectl && chmod +x .bin/kubectl
# - export PATH="$TRAVIS_BUILD_DIR/.bin:$PATH"
# - wget https://cdn.rawgit.com/Mirantis/kubeadm-dind-cluster/master/fixed/dind-cluster-v1.8.sh && chmod +x dind-cluster-v1.8.sh && ./dind-cluster-v1.8.sh up
# - export PATH="$HOME/.kubeadm-dind-cluster:$PATH"

script:
- make test
- make build docker-build
# - kubectl get nodes
# - kubectl run podinfo --image=podinfo:latest --port=9898
# - sleep 5
# - kubectl get pods

after_success:
- if [ -z "$DOCKER_USER" ]; then
Expand All @@ -41,3 +32,10 @@ after_success:
echo $QUAY_PASS | docker login -u $QUAY_USER --password-stdin quay.io;
make quay-push;
fi

deploy:
- provider: script
skip_cleanup: true
script: curl -sL http://git.io/goreleaser | bash
on:
tags: true
2 changes: 1 addition & 1 deletion pkg/version/version.go
@@ -1,4 +1,4 @@
package version

var VERSION = "1.1.0"
var VERSION = "1.1.1"
var REVISION = "unknown"

0 comments on commit 457a56f

Please sign in to comment.