-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (32 loc) · 1.39 KB
/
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
34
35
36
ARCH:=amd64
# renovate: depName=zarf-dev/zarf
ZARF_VERSION:="0.44.0"
# renovate: depName=go-gitea/gitea
GITEA_VERSION:="1.22.3"
# renovate: depName=distribution/distribution
REGISTRY_VERSION:="2.8.3"
ZARF_DIR:="zarf"
BUILD_DIR:="../../build"
KMS_ALIAS:="zarf-init-bigbang"
.PHONY: build-full
build-full:
cd zarf/full && \
zarf package create -o $(BUILD_DIR) -a $(ARCH) --confirm . \
--set REGISTRY_IMAGE_DOMAIN="registry1.dso.mil/" \
--set REGISTRY_IMAGE="ironbank/opensource/docker/registry-v2" \
--set REGISTRY_IMAGE_TAG=$(REGISTRY_VERSION) \
--set AGENT_IMAGE_DOMAIN="registry1.dso.mil/" \
--set AGENT_IMAGE="ironbank/opensource/defenseunicorns/zarf/zarf-agent" \
--set AGENT_IMAGE_TAG=v$(ZARF_VERSION) \
--set INJECTOR_VERSION="2024-07-22" \
--set INJECTOR_AMD64_SHASUM="8463bfd66930a4b26c665b51f25e8a32ed5948068bae49987013c89173394478" \
--set GITEA_IMAGE=registry1.dso.mil/ironbank/opensource/go-gitea/gitea:v$(GITEA_VERSION) && \
mv $(BUILD_DIR)/zarf-init-amd64-v$(ZARF_VERSION).tar.zst $(BUILD_DIR)/zarf-init-full-amd64-v$(ZARF_VERSION).tar.zst
.PHONY: build-minimal
build-minimal:
cd zarf/minimal && \
zarf package create -o $(BUILD_DIR) -a $(ARCH) --confirm . && \
mv $(BUILD_DIR)/zarf-init-amd64-v$(ZARF_VERSION).tar.zst $(BUILD_DIR)/zarf-init-minimal-amd64-v$(ZARF_VERSION).tar.zst
.PHONY: generate-key-pair
generate-key-pair:
cosign generate-key-pair --kms awskms:///alias/$(KMS_ALIAS)