<commit_before>## Set this as an environment variable to enable signing commands using cmrel.
## Format should be:
## projects/<project>/locations/<location>/keyRings/<keyring>/cryptoKeys/<keyname>/cryptoKeyVersions/<keyversion>
##
## @category Release
CMREL_KEY ?=

.PHONY: release-artifacts
# Build all release artifacts which might be run or used locally, except
# for anything signed.
release-artifacts: server-binaries cmctl kubectl-cert_manager helm-chart release-container-bundles release-manifests

.PHONY: release-artifacts-signed
# Same as `release`, except it also signs the Helm chart. Requires CMREL_KEY
# to be configured.
release-artifacts-signed: release-artifacts
	$(MAKE) --no-print-directory helm-chart-signature

.PHONY: release
## Create a full release ready to be staged, including containers bundled for
## distribution. Requires CMREL_KEY to be configured.
##
## @category Release
release: release-artifacts-signed
	$(MAKE) --no-print-directory bin/release/metadata.json

# Example of how we can generate a SHA256SUMS file and sign it using cosign
#bin/SHA256SUMS: $(wildcard ...)
#	@# The patsubst means "all dependencies, but with "bin/" trimmed off the beginning
#	@# We cd into bin so that SHA256SUMS file doesn't have a prefix of `bin` on everything
#	cd $(dir $@) && sha256sum $(patsubst bin/%,%,$^) > $(notdir $@)

#bin/SHA256SUMS.sig: bin/SHA256SUMS bin/tools/cosign
#	bin/tools/cosign sign-blob --key $(COSIGN_KEY) $< > $@
<commit_msg>fix target when building containers for release<commit_after>## Set this as an environment variable to enable signing commands using cmrel.
## Format should be:
## projects/<project>/locations/<location>/keyRings/<keyring>/cryptoKeys/<keyname>/cryptoKeyVersions/<keyversion>
##
## @category Release
CMREL_KEY ?=

.PHONY: release-artifacts
# Build all release artifacts which might be run or used locally, except
# for anything signed.
release-artifacts: server-binaries cmctl kubectl-cert_manager helm-chart release-containers release-manifests

.PHONY: release-artifacts-signed
# Same as `release`, except it also signs the Helm chart. Requires CMREL_KEY
# to be configured.
release-artifacts-signed: release-artifacts
	$(MAKE) --no-print-directory helm-chart-signature

.PHONY: release
## Create a full release ready to be staged, including containers bundled for
## distribution. Requires CMREL_KEY to be configured.
##
## @category Release
release: release-artifacts-signed
	$(MAKE) --no-print-directory bin/release/metadata.json

# Example of how we can generate a SHA256SUMS file and sign it using cosign
#bin/SHA256SUMS: $(wildcard ...)
#	@# The patsubst means "all dependencies, but with "bin/" trimmed off the beginning
#	@# We cd into bin so that SHA256SUMS file doesn't have a prefix of `bin` on everything
#	cd $(dir $@) && sha256sum $(patsubst bin/%,%,$^) > $(notdir $@)

#bin/SHA256SUMS.sig: bin/SHA256SUMS bin/tools/cosign
#	bin/tools/cosign sign-blob --key $(COSIGN_KEY) $< > $@

{'fraction_non_alphanumeric': 0.11576105298683767, 'fraction_numerical': 0.012149848126898413, 'mean_word_length': 4.928, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1948699', 'n_tokens_mistral': 957, 'n_tokens_neox': 898, 'n_words': 306}