@@ -2,7 +2,7 @@ version: 2
22
33env :
44 - REGISTRY={{ if index .Env "REGISTRY" }}{{ .Env.REGISTRY }}{{ else }}ghcr.io{{ end }}
5- - IMAGE_NAME={{ if index .Env "IMAGE_NAME" }}{{ .Env.IMAGE_NAME }}{{ else }}tinkerbell/cluster-api-provider-tinkerbell {{ end }}
5+ - IMAGE_NAME={{ if index .Env "IMAGE_NAME" }}{{ .Env.IMAGE_NAME }}{{ else }}{{.GitURL | trimprefix "https://" | trimprefix "git@" | trimprefix "github.com" | trimprefix ":" | trimprefix "/" | trimsuffix ".git"}} {{ end }}
66 - BINARY=capt
77 - IS_RELEASE={{ if index .Env "IS_RELEASE" }}{{ .Env.IS_RELEASE }}{{ else }}true{{ end }}
88
@@ -14,35 +14,50 @@ builds:
1414 - id : build
1515 binary : " {{ .Env.BINARY }}"
1616 env :
17- - CGO_ENABLED=0
17+ - CGO_ENABLED=0
1818 goos :
19- - linux
19+ - linux
2020 ldflags :
21- - -s -w
21+ - -s -w
2222 goarch :
23- - amd64
24- - arm64
23+ - amd64
24+ - arm64
25+ skip : false
2526
2627checksum :
27- name_template : ' checksums.txt'
28+ name_template : " checksums.txt"
2829
2930archives :
3031 - formats :
31- - binary
32+ - binary
3233
3334release :
3435 disable : true
3536
36- dockers_v2 :
37- - images :
37+ snapshot :
38+ version_template : " {{ incpatch .Version }}-next"
39+
40+ kos :
41+ - build : build
42+ repositories :
3843 - " {{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}"
3944 tags :
4045 - ' {{ if eq .Env.IS_RELEASE "true" }}v{{ .Version }}{{ end }}'
41- - ' {{ if not .IsNightly }}latest{{ end }}'
46+ - " {{ if not .IsSnapshot }}latest{{ end }}"
4247 - ' {{ if eq .Branch "main" }}sha-{{ .ShortCommit }}{{ end }}'
4348 labels :
4449 " org.opencontainers.image.created " : " {{.Date}}"
4550 " org.opencontainers.image.name " : " {{.ProjectName}}"
4651 " org.opencontainers.image.revision " : " {{.FullCommit}}"
4752 " org.opencontainers.image.version " : " v{{.Version}}"
4853 " org.opencontainers.image.source " : " {{.GitURL}}"
54+ bare : true
55+ preserve_import_paths : false
56+ platforms :
57+ - linux/amd64
58+ - linux/arm64
59+ base_image : docker.io/chainguard/static
60+ creation_time : " {{.CommitTimestamp}}"
61+ ko_data_creation_time : " {{.CommitTimestamp}}"
62+ sbom : none
63+ disable : " {{ .IsSnapshot }}"
0 commit comments