forked from oskanberg/slack-tube-service
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding release binary upload to GitHub
- Loading branch information
Showing
6 changed files
with
39 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ coverage.out | |
/bin | ||
*.db | ||
tags | ||
.vscode | ||
.vscode | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
ssh ec2-user@services.thoeni.io 'pkill -f slack-tube-service' | ||
./mkbin.sh linux | ||
scp bin/slack-tube-service-linux-amd64 ec2-user@services.thoeni.io:~/ | ||
scp dist/slack-tube-service-linux-amd64 ec2-user@services.thoeni.io:~/ | ||
ssh ec2-user@services.thoeni.io screen -d -m './slack-tube-service-linux-amd64 &' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
#!/bin/bash | ||
BUILD_VERSION=$(git describe --tags --always) | ||
CID=$(git log --format="%H" -n 1) | ||
if [ "$1" = "linux" ] || [ "$1" = "" ]; then | ||
echo "Generating Linux binary" | ||
env GOOS=linux GOARCH=amd64 go build -o bin/slack-tube-service-linux-amd64 | ||
env GOOS=linux GOARCH=amd64 go build -ldflags "-X main.AppVersion=$BUILD_VERSION -X main.Sha=$CID" -o dist/slack-tube-service-$BUILD_VERSION-linux-amd64 | ||
fi | ||
if [ "$1" = "windows" ] || [ "$1" = "" ]; then | ||
echo "Generating Windows binary" | ||
env GOOS=windows GOARCH=amd64 go build -o bin/slack-tube-service.exe | ||
env GOOS=windows GOARCH=amd64 go build -ldflags "-X main.AppVersion=$BUILD_VERSION -X main.Sha=$CID" -o dist/slack-tube-service-$BUILD_VERSION-windows-amd64.exe | ||
fi | ||
if [ "$1" = "mac" ] || [ "$1" = "" ]; then | ||
echo "Generating MacOS binary" | ||
env GOOS=darwin GOARCH=amd64 go build -o bin/slack-tube-service-darwin | ||
env GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.AppVersion=$BUILD_VERSION -X main.Sha=$CID" -o dist/slack-tube-service-$BUILD_VERSION-darwin-amd64 | ||
fi | ||
echo "Done!" | ||
ls -al bin/ | ||
ls -al dist/ |