-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
executable file
·33 lines (25 loc) · 986 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# The version of Big Bang to use.
BIGBANG_VERSION := 1.46.0
# The version of Zarf to use. To keep this repo as portable as possible the Zarf binary will be downloaded and added to
# the build folder.
ZARF_VERSION := v0.21.3
# Figure out which Zarf binary we should use based on the operating system we are on
ZARF_BIN := zarf
.DEFAULT_GOAL := help
# Idiomatic way to force a target to always run, by having it depend on this dummy target
FORCE:
.PHONY: help
help: ## Show a list of all targets
@grep -E '^\S*:.*##.*$$' $(MAKEFILE_LIST) \
| sed -n 's/^\(.*\): \(.*\)##\(.*\)/\1:\3/p' \
| column -t -s ":"
.PHONY: clean
clean: ## Clean up build files
@rm -rf ./build zarf-sbom
mkdir:
@mkdir -p build
.PHONY: build
build: mkdir ## Build the Big Bang Zarf Package
@echo "Creating the deploy package"
@$(ZARF_BIN) package create --skip-sbom --set BIGBANG_VERSION=$(BIGBANG_VERSION) --confirm
@mv zarf-package-big-bang-amd64.tar.zst build/zarf-package-big-bang-amd64.tar.zst