Skip to content

Commit

Permalink
Break release into smaller chunks. (#268)
Browse files Browse the repository at this point in the history
* Break release into smaller chunks.

Signed-off-by: Ville Aikas <[email protected]>

* ko resolve indidivual release files for each artifact
release-ctlog.yaml
release-fulcio.yaml
release-rekor.yaml
release-trillian.yaml
release-tuf.yaml

Also release setup-scaffolding.sh script.

Signed-off-by: Ville Aikas <[email protected]>

* hack/update-deps.sh

Signed-off-by: Ville Aikas <[email protected]>

* Remove unwanted file again.

Signed-off-by: Ville Aikas <[email protected]>
  • Loading branch information
vaikas authored Aug 8, 2022
1 parent 2e198ea commit 9473e9a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ release:
footer: |
### Thanks to all contributors!
extra_files:
- glob: "./release.yaml"
- glob: "./release-*.yaml"
- glob: "./testrelease.yaml"
- glob: "./hack/setup-kind.sh"
- glob: "./hack/setup-scaffolding.sh"
15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@ LDFLAGS=-buildid= -X sigs.k8s.io/release-utils/version.gitVersion=$(GIT_TAG)

KO_DOCKER_REPO ?= ghcr.io/sigstore/scaffolding

# These are the subdirs under config that we'll turn into separate artifacts.
artifacts := trillian ctlog fulcio rekor tuf

.PHONY: ko-resolve
ko-resolve:
# "Doing ko resolve for config"
# "Build a big bundle of joy, this also produces SBOMs"
LDFLAGS="$(LDFLAGS)" \
ko resolve --tags $(GIT_TAG),latest --base-import-paths --recursive --filename ./config --platform=all --image-refs imagerefs > release.yaml
$(foreach artifact, $(artifacts), $(shell export LDFLAGS="$(LDFLAGS)"; \
ko resolve --tags $(GIT_TAG),latest -BRf ./config/$(artifact) \
--platform=all \
--image-refs imagerefs-$(artifact) > release-$(artifact).yaml )) \

# Then collect all the imagerefs from various imageref-* produced above
# because otherwise they would stomp on each other above if writing to same
# file.
$(foreach artifact, $(artifacts), $(shell cat imagerefs-$(artifact) >> ./imagerefs )) \

.PHONY: ko-resolve-testdata
ko-resolve-testdata:
Expand Down

0 comments on commit 9473e9a

Please sign in to comment.