Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Compress the binaries for smaller release artifacts (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
nacx authored Mar 5, 2024
1 parent b2e25b0 commit df98bc5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ jobs:
- run: make fips
- run: make docker-push
- run: make docker-push-fips
- run: make dist

- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/authservice-*
files: bin/dist/*
draft: true
generate_release_notes: true
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ else
@$(ROOT)/run-in-docker.sh $(GOOS)/$(GOARCH) make $@
endif


.PHONY: clean
clean: clean/e2e ## Clean the build artifacts
@rm -rf $(OUTDIR)
Expand Down Expand Up @@ -216,6 +215,13 @@ check: ## CI blocks merge until this passes. If this fails, run "make check" lo
exit 1; \
fi

.PHONY: dist
dist: ## Package the release binaries
@mkdir -p $(OUTDIR)/dist
@cd $(OUTDIR) && for f in $(NAME)-*; do \
tar cvzf dist/$$f.tar.gz $$f; \
done

.PHONY: help
help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} \
Expand Down

0 comments on commit df98bc5

Please sign in to comment.