Skip to content

build: Fix image tags in release manifests #516

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

Merged
merged 1 commit into from
Apr 16, 2024
Merged
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
16 changes: 8 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ before:
apiVersion: v1
kind: Namespace
metadata:
name: {{.ProjectName}}-system
$(helm template {{.ProjectName}} ./charts/{{.ProjectName}} \
--namespace {{.ProjectName}}-system \
--set-string image.tag={{ .Version }} \
name: {{ .ProjectName }}-system
$(helm template {{ .ProjectName }} ./charts/{{ .ProjectName }} \
--namespace {{ .ProjectName }}-system \
--set-string image.tag=v{{ trimprefix .Version "v" }} \
{{ if .IsSnapshot }}--set-string image.repository=ko.local/{{ .ProjectName }}{{ end }} \
)
EOF'
Expand Down Expand Up @@ -75,12 +75,12 @@ builds:
KO_DOCKER_REPO=ko.local/{{ .ProjectName }} \
ko build \
--bare \
-t {{ .Version }} \
-t v{{ trimprefix .Version "v" }} \
./cmd
fi'

archives:
- name_template: '{{ .ProjectName }}_v{{trimprefix .Version "v"}}_{{ .Os }}_{{ .Arch }}'
- name_template: '{{ .ProjectName }}_v{{ trimprefix .Version "v" }}_{{ .Os }}_{{ .Arch }}'
rlcp: true
builds:
- cluster-api-runtime-extensions-nutanix
Expand All @@ -102,15 +102,15 @@ kos:
org.opencontainers.image.created: "{{ .CommitDate }}"
org.opencontainers.image.title: "{{ .ProjectName }}"
org.opencontainers.image.revision: "{{ .FullCommit }}"
org.opencontainers.image.version: v{{trimprefix .Version "v"}}
org.opencontainers.image.version: v{{ .Version }}
org.opencontainers.image.source: "{{ .GitURL }}"
platforms:
- linux/amd64
- linux/arm64
repository: ghcr.io/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix
bare: true
tags:
- v{{trimprefix .Version "v"}}
- v{{ trimprefix .Version "v" }}

checksum:
name_template: 'checksums.txt'
Expand Down
Loading