Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 0 additions & 127 deletions build.go

This file was deleted.

34 changes: 0 additions & 34 deletions circleci.go

This file was deleted.

76 changes: 0 additions & 76 deletions container.go

This file was deleted.

7 changes: 2 additions & 5 deletions glu.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ func shellOutput(cmd string) string {
}

func repoLocation() string {
if insideContainer() {
os.Chdir("/project")
}
repo := shellOutput("git config --get remote.origin.url")
repo = strings.TrimPrefix(repo, "http://")
repo = strings.TrimPrefix(repo, "https://")
Expand All @@ -113,8 +110,8 @@ func normalizeVersion(v string) string {
}

func findVersion() string {
if insideContainer() {
os.Chdir("/project")
if len(os.Getenv("VERSION")) > 0 {
return os.Getenv("VERSION")
}
if exists("VERSION") {
return normalizeVersion(readFile("VERSION"))
Expand Down
6 changes: 3 additions & 3 deletions release.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"os"

"github.com/progrium/go-shell"
"github.com/keyki/go-shell"
"github.com/spf13/cobra"
)

Expand All @@ -30,11 +30,11 @@ var releaseCmd = &cobra.Command{
defer shell.ErrExit()
shell.Trace = true
shell.Tee = os.Stdout
sh("go get -u github.com/progrium/gh-release/...")
sh("go get -u github.com/keyki/gh-release/...")
sh("rm -rf release")
sh("mkdir release")

for _, platform := range []string{"Linux", "Darwin"} {
for _, platform := range []string{"Linux", "Darwin", "Windows"} {
if binary := detectBinaryBuild(platform); binary != "" {
// tar -zcf release/$(NAME)_$(VERSION)_$(PLATFORM)_$(ARCH).tgz -C build/$(PLATFORM) $(BINARYNAME)
sh("tar -zcf",
Expand Down