From 9e94b459661467724c9bac9db0cea279c6207aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20=C5=A0obot?= Date: Wed, 25 Sep 2024 14:25:29 +0200 Subject: [PATCH 1/2] README: Use go install, for more information, see https://golang.org/doc/go-get-install-deprecation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Igor Ĺ obot --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b2f3b34..a9eba6a 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ dogfooding, check the makefile! If you have Go installed, you can just do: ```sh -go get github.com/github-release/github-release +go install github.com/github-release/github-release ``` This will automatically download, compile and install the app. From 2c19b119ec8a75203b6b6269ef02a5e32c9e4ebd Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Tue, 22 Jul 2025 16:22:31 -0700 Subject: [PATCH 2/2] try new Makefile --- Makefile | 9 +++++---- release | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index de043de..87f6565 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SHELL=/bin/bash -o pipefail -LAST_TAG := $(shell git describe --abbrev=0 --tags) +LAST_TAG ?= $(shell git describe --abbrev=0 --tags) USER := github-release EXECUTABLE := github-release @@ -64,9 +64,10 @@ ifndef GITHUB_TOKEN endif docker run --rm --volume $(PWD)/var/cache:/root/.cache/go-build \ --env GITHUB_TOKEN=$(GITHUB_TOKEN) \ - --volume "$(PWD)":/go/src/github.com/github-release/github-release \ - --workdir /go/src/github.com/github-release/github-release \ - meterup/ubuntu-golang:latest \ + --env DEBUG_HTTP_TRAFFIC=true \ + --volume "$(PWD)":/app \ + --workdir /app \ + golang:latest \ ./release \ "$(MAKE) bin/tmp/$(EXECUTABLE) $(COMPRESSED_EXECUTABLE_TARGETS) && \ git log --format=%B $(LAST_TAG) -1 | \ diff --git a/release b/release index 3557211..4a1f30e 100755 --- a/release +++ b/release @@ -3,7 +3,7 @@ set -euo pipefail main() { - apt-get update && apt-get install zip + apt-get update && apt-get install -y zip bzip2 git branch --set-upstream-to=origin/master release set -x exec /bin/bash -c "$@"