mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 03:27:23 -05:00 
			
		
		
		
	ci: Fix goreleaser deprecation (#5270)
This commit is contained in:
		
							parent
							
								
									4e54e48409
								
							
						
					
					
						commit
						b40548ff61
					
				@ -66,24 +66,41 @@ builds:
 | 
				
			|||||||
  - -mod=readonly
 | 
					  - -mod=readonly
 | 
				
			||||||
  ldflags:
 | 
					  ldflags:
 | 
				
			||||||
  - -s -w
 | 
					  - -s -w
 | 
				
			||||||
 | 
					
 | 
				
			||||||
signs:
 | 
					signs:
 | 
				
			||||||
  - cmd: cosign
 | 
					  - cmd: cosign
 | 
				
			||||||
    signature: "${artifact}.sig"
 | 
					    signature: "${artifact}.sig"
 | 
				
			||||||
    certificate: '{{ trimsuffix (trimsuffix .Env.artifact ".zip") ".tar.gz" }}.pem'
 | 
					    certificate: '{{ trimsuffix (trimsuffix .Env.artifact ".zip") ".tar.gz" }}.pem'
 | 
				
			||||||
    args: ["sign-blob", "--output-signature=${signature}", "--output-certificate", "${certificate}", "${artifact}"]
 | 
					    args: ["sign-blob", "--output-signature=${signature}", "--output-certificate", "${certificate}", "${artifact}"]
 | 
				
			||||||
    artifacts: all
 | 
					    artifacts: all
 | 
				
			||||||
 | 
					
 | 
				
			||||||
sboms:
 | 
					sboms:
 | 
				
			||||||
  - artifacts: binary
 | 
					  - artifacts: binary
 | 
				
			||||||
    documents:
 | 
					    documents:
 | 
				
			||||||
    - '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{if .Arm}}v{{ .Arm }}{{end}}.sbom'
 | 
					      - >-
 | 
				
			||||||
 | 
					        {{ .ProjectName }}_
 | 
				
			||||||
 | 
					        {{- .Version }}_
 | 
				
			||||||
 | 
					        {{- if eq .Os "darwin" }}mac{{ else }}{{ .Os }}{{ end }}_
 | 
				
			||||||
 | 
					        {{- .Arch }}
 | 
				
			||||||
 | 
					        {{- with .Arm }}v{{ . }}{{ end }}
 | 
				
			||||||
 | 
					        {{- with .Mips }}_{{ . }}{{ end }}
 | 
				
			||||||
 | 
					        {{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}.sbom
 | 
				
			||||||
    cmd: syft
 | 
					    cmd: syft
 | 
				
			||||||
    args: ["$artifact", "--file", "${document}", "--output", "cyclonedx-json"]
 | 
					    args: ["$artifact", "--file", "${document}", "--output", "cyclonedx-json"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
archives:
 | 
					archives:
 | 
				
			||||||
  - format_overrides:
 | 
					  - format_overrides:
 | 
				
			||||||
      - goos: windows
 | 
					      - goos: windows
 | 
				
			||||||
        format: zip
 | 
					        format: zip
 | 
				
			||||||
    replacements:
 | 
					    name_template: >-
 | 
				
			||||||
      darwin: mac
 | 
					      {{ .ProjectName }}_
 | 
				
			||||||
 | 
					      {{- .Version }}_
 | 
				
			||||||
 | 
					      {{- if eq .Os "darwin" }}mac{{ else }}{{ .Os }}{{ end }}_
 | 
				
			||||||
 | 
					      {{- .Arch }}
 | 
				
			||||||
 | 
					      {{- with .Arm }}v{{ . }}{{ end }}
 | 
				
			||||||
 | 
					      {{- with .Mips }}_{{ . }}{{ end }}
 | 
				
			||||||
 | 
					      {{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
checksum:
 | 
					checksum:
 | 
				
			||||||
  algorithm: sha512
 | 
					  algorithm: sha512
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -128,7 +145,6 @@ nfpms:
 | 
				
			|||||||
      preremove: ./caddy-dist/scripts/preremove.sh
 | 
					      preremove: ./caddy-dist/scripts/preremove.sh
 | 
				
			||||||
      postremove: ./caddy-dist/scripts/postremove.sh
 | 
					      postremove: ./caddy-dist/scripts/postremove.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
release:
 | 
					release:
 | 
				
			||||||
  github:
 | 
					  github:
 | 
				
			||||||
    owner: caddyserver
 | 
					    owner: caddyserver
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user