Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Ensure provider metadata is up to date when releasing #600

Merged
merged 1 commit into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ node_modules/
/runtime-extension-components.yaml
/_artifacts/
test/e2e/config/caren-envsubst.yaml
/release-metadata.yaml
9 changes: 7 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ release:
**Full Changelog**: https://github.com/nutanix-cloud-native/{{.ProjectName}}/compare/{{ .PreviousTag }}...{{ .Tag }}
extra_files:
- glob: ./examples/capi-quick-start/*.yaml
- glob: metadata.yaml
- glob: release-metadata.yaml
name_template: metadata.yaml
- glob: runtime-extension-components.yaml

before:
Expand All @@ -41,7 +42,11 @@ before:
{{ if .IsSnapshot }}--set-string image.repository=ko.local/{{ .ProjectName }}{{ end }} \
)
EOF'
- sed -i 's/\${/$${/g' runtime-extension-components.yaml
- sed -i -e 's/\${/$${/g' -e 's/v0.0.0-dev/v{{ trimprefix .Version "v" }}/g' runtime-extension-components.yaml
- |
sh -ec 'gojq --yaml-input --yaml-output \
".releaseSeries |= (. + [{contract: \"v1beta1\", major: {{ .Major }}, minor: {{ .Minor }}}] | unique)" \
metadata.yaml >release-metadata.yaml'
jimmidyson marked this conversation as resolved.
Show resolved Hide resolved

builds:
- id: cluster-api-runtime-extensions-nutanix
Expand Down
Loading