Skip to content

Commit

Permalink
ci: build-docker as dependency for all
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed Feb 14, 2024
1 parent e500f3e commit 32f8a43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ifeq ($(shell uname -s),Darwin)
TAR := gtar # brew install gnu-tar
endif

all: clean tarball build-all man clean-uncompressed-dist shasums
all: clean tarball build-all build-docker man clean-uncompressed-dist shasums

run:
go run $(PACKAGE)/$(CMD_GDU)
Expand Down Expand Up @@ -74,8 +74,6 @@ build-all:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="$(LDFLAGS)" -o dist/gdu_linux_arm64 $(PACKAGE)/$(CMD_GDU)
CGO_ENABLED=0 GOOS=android GOARCH=arm64 go build -ldflags="$(LDFLAGS)" -o dist/gdu_android_arm64 $(PACKAGE)/$(CMD_GDU)

docker build . --tag ghcr.io/dundee/gdu:$(VERSION)

cd dist; for file in gdu_linux_* gdu_darwin_* gdu_netbsd_* gdu_openbsd_* gdu_freebsd_* gdu_android_*; do tar czf $$file.tgz $$file; done
cd dist; for file in gdu_windows_*; do zip $$file.zip $$file; done

Expand Down Expand Up @@ -143,7 +141,6 @@ shasums:
cd dist; gpg --sign --armor --detach-sign sha256sums.txt

release:
docker push ghcr.io/dundee/gdu:$(VERSION)
gh release create -t "gdu $(VERSION)" $(VERSION) ./dist/*

install-dev-dependencies:
Expand Down

0 comments on commit 32f8a43

Please sign in to comment.