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
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ jobs:
with:
files: |
bin/guard-darwin-amd64.tar.gz
bin/guard-darwin-arm64.tar.gz
bin/guard-linux-amd64.tar.gz
bin/guard-linux-arm.tar.gz
bin/guard-linux-arm64.tar.gz
bin/guard-windows-amd64.zip
bin/guard-windows-arm64.zip
bin/guard-checksums.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ _testmain.go

# Test binaries
tests/mock-server/mock-server

.cache/
.config/
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ REGISTRY ?= ghcr.io/kubeguard
git_branch := $(shell git rev-parse --abbrev-ref HEAD)
git_tag := $(shell git describe --exact-match --abbrev=0 2>/dev/null || echo "")
commit_hash := $(shell git rev-parse --verify HEAD)
ifeq ($(shell uname -s),Darwin)
commit_timestamp := $(shell date -u -r $$(git show -s --format=%ct) +%FT%T)
else
commit_timestamp := $(shell date --date="@$$(git show -s --format=%ct)" --utc +%FT%T)
endif

VERSION := $(shell git describe --tags --always --dirty)
version_strategy := commit_hash
Expand All @@ -50,7 +54,7 @@ SRC_PKGS := auth authz commands docs installer server util
SRC_DIRS := $(SRC_PKGS) *.go test hack/gendocs # directories which hold app source (not vendored)

DOCKER_PLATFORMS := linux/amd64 linux/arm linux/arm64
BIN_PLATFORMS := $(DOCKER_PLATFORMS) windows/amd64 darwin/amd64
BIN_PLATFORMS := $(DOCKER_PLATFORMS) windows/amd64 windows/arm64 darwin/amd64 darwin/arm64

# Used internally. Users should pass GOOS and/or GOARCH.
OS := $(if $(GOOS),$(GOOS),$(shell go env GOOS))
Expand Down