Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
Add support for alpine build (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgokden authored Apr 8, 2019
1 parent ee4250b commit 0048470
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- run: ./build.sh local
- run: cp ./bin/* ./artifacts
- run: cp ./bin/vamp-darwin-amd64 ./artifacts/vamp-darwin-x86_64
- run: cp ./bin/vamp-linux-amd64 ./artifacts/vamp-linux-x86_64
- run: go run main.go version clean > ./artifacts/version.txt
- persist_to_workspace:
root: ./artifacts
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ "$1" = "local" ]; then
if [ "$GOOS" = "windows" ]; then
go get -u github.com/spf13/cobra
fi
go build -o bin/vamp-$GOOS-$GOARCH
CGO_ENABLED=0 go build -o bin/vamp-$GOOS-$GOARCH
done
done
unset GOOS
Expand All @@ -28,7 +28,7 @@ else
if [ "$GOOS" = "windows" ]; then
go get -u github.com/spf13/cobra
fi
go build -o bin/vamp-$GOOS-$GOARCH
CGO_ENABLED=0 go build -o bin/vamp-$GOOS-$GOARCH
done
done
'
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var OutputType string
var Hosts []string

// version should be in format d.d.d where d is a decimal number
const Version string = "0.0.19"
const Version string = "0.0.20"
const AppName string = "vamp"

// Backend version is the version this client is tested with
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

mkdir -p $GOPATH/bin
go build -o $GOPATH/bin/vamp
CGO_ENABLED=0 go build -o $GOPATH/bin/vamp

0 comments on commit 0048470

Please sign in to comment.