mirror of
https://github.com/BishopFox/sj.git
synced 2026-11-07 10:26:01 -10:00
75 lines
1.6 KiB
YAML
75 lines
1.6 KiB
YAML
version: 2
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
|
|
builds:
|
|
- env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- windows
|
|
- darwin
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- -s -w -X main.build={{.Version}}
|
|
|
|
|
|
archives:
|
|
- format: tar.gz
|
|
name_template: >-
|
|
{{ .ProjectName }}_
|
|
{{- title .Os }}_
|
|
{{- if eq .Arch "amd64" }}x86_64
|
|
{{- else if eq .Arch "386" }}i386
|
|
{{- else }}{{ .Arch }}{{ end }}
|
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
|
|
dockers_v2:
|
|
- images:
|
|
- "ghcr.io/bishopfox/sj"
|
|
dockerfile: Dockerfile
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
tags:
|
|
- "{{ .Version }}"
|
|
- "latest"
|
|
labels:
|
|
org.opencontainers.image.title: "{{ .ProjectName }}"
|
|
org.opencontainers.image.description: "Swagger Jacker"
|
|
org.opencontainers.image.version: "{{ .Version }}"
|
|
org.opencontainers.image.revision: "{{ .FullCommit }}"
|
|
org.opencontainers.image.source: "https://github.com/BishopFox/sj"
|
|
org.opencontainers.image.licenses: "MIT"
|
|
|
|
changelog:
|
|
disable: false
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
groups:
|
|
- title: Features
|
|
regexp: "^(?i).*add.*$"
|
|
order: 0
|
|
- title: "Bug fixes"
|
|
regexp: "^(?i).*fix.*$"
|
|
order: 1
|
|
- title: Others
|
|
order: 999
|
|
|
|
release:
|
|
draft: true
|
|
header: |
|
|
### Did you know?
|
|
|
|
sj is now integrated into [Joro](https://github.com/BishopFox/joro)!
|
|
You can run Swagger/OpenAPI exposure testing as part of a Joro workflow without invoking sj by hand.
|