Skip to content

Commit

Permalink
build: strip leading bin dir for tar archives
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Braun <rainbowstack@gmail.com>
  • Loading branch information
bluebrown committed Sep 5, 2023
1 parent 7bd6f0d commit 33c1540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ image-build: ## Build the images with VERSION as tag. Passes BUILDX_FLAGS to bui
.PHONY: artifacts
artifacts: bin/kustomize build ## Create all release artifacts and put the in .dist/
mkdir -p .dist && rm -rf .dist/*
$(foreach binary,$(wildcard bin/kobold*),tar -czf .dist/$(notdir $(binary)).$(GOOS)-$(GOARCH).tgz $(binary);)
$(foreach binary,$(wildcard bin/kobold*),tar -C bin -czf .dist/$(notdir $(binary)).$(GOOS)-$(GOARCH).tgz $(notdir $(binary));)
bin/kustomize build manifests/dist/ -o .dist/kobold.manifests.yaml
cp assets/schema.json .dist/kobold.schema.json
$(MAKE) image-build BUILDX_FLAGS='--set *.attest=type=sbom \
Expand Down

0 comments on commit 33c1540

Please sign in to comment.