Skip to content

Commit

Permalink
Bump version to 0.4.0 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepro authored Jun 4, 2020
1 parent a27a6fd commit fc2998c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cli/kdo/bin/
cli/kdo/__debug_bin
cli/kdo/rel/
cli/kdo/__debug_bin
33 changes: 33 additions & 0 deletions cli/kdo/buildrel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

VERSION=$1
if [ -z "$VERSION" ]; then
echo >&2 Error: missing version
exit 1
fi

mkdir -p rel

echo Building Darwin binary...
GOOS=darwin GOARCH=amd64 go build -o bin/darwin/amd64/kdo -v
echo Packaging Darwin binary...
cd bin/darwin/amd64
sudo chown 0:0 kdo
tar -czvf ../../../rel/kdo-v$VERSION-darwin-amd64.tar.gz kdo
cd ../../..

echo Building Linux binary...
GOOS=linux GOARCH=amd64 go build -o bin/linux/amd64/kdo -v
echo Packaging Linux binary...
cd bin/linux/amd64
sudo chown 0:0 kdo
tar -czvf ../../../rel/kdo-v$VERSION-linux-amd64.tar.gz kdo
cd ../../..

echo Building Windows binary...
GOOS=windows GOARCH=amd64 go build -o bin/windows/amd64/kdo.exe -v
echo Packaging Windows binary...
cd bin/windows/amd64
sudo chown 0:0 kdo.exe
zip ../../../rel/kdo-v$VERSION-windows-amd64.zip kdo.exe
cd ../../..
2 changes: 1 addition & 1 deletion cli/kdo/kdo.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
var cmd = &cobra.Command{
Short: "kdo is sudo for Kubernetes",
Use: usage,
Version: "0.3.0",
Version: "0.4.0",
Example: examples,
RunE: run,
}
Expand Down

0 comments on commit fc2998c

Please sign in to comment.