mirror of
https://github.com/itzg/mc-router.git
synced 2024-11-13 10:14:05 +01:00
95 lines
2.3 KiB
YAML
95 lines
2.3 KiB
YAML
project_name: mc-router
|
|
release:
|
|
github:
|
|
owner: itzg
|
|
name: mc-router
|
|
before:
|
|
hooks:
|
|
- go mod download
|
|
brews:
|
|
- install: |
|
|
bin.install "mc-router"
|
|
builds:
|
|
- goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
- arm
|
|
goarm:
|
|
- 6
|
|
ignore:
|
|
- goos: windows
|
|
goarch: arm
|
|
- goos: windows
|
|
goarch: arm64
|
|
main: ./cmd/mc-router
|
|
binary: mc-router
|
|
env:
|
|
- CGO_ENABLED=0
|
|
archives:
|
|
- id: tar_gz
|
|
format: tar.gz
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
files:
|
|
- LICENSE*
|
|
- README*
|
|
snapshot:
|
|
name_template: SNAPSHOT-{{ .ShortCommit }}
|
|
dockers:
|
|
- image_templates:
|
|
- "itzg/{{ .ProjectName }}:{{ .Version }}-amd64"
|
|
dockerfile: Dockerfile.release
|
|
goarch: amd64
|
|
build_flag_templates:
|
|
- --platform
|
|
- linux/amd64
|
|
- --load
|
|
- --label=org.opencontainers.image.version={{ .Version }}
|
|
- --label=org.opencontainers.image.revision={{ .FullCommit }}
|
|
|
|
- image_templates:
|
|
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm64"
|
|
dockerfile: Dockerfile.release
|
|
goarch: arm64
|
|
build_flag_templates:
|
|
- --platform
|
|
- linux/arm64
|
|
- --load
|
|
- --label=org.opencontainers.image.version={{ .Version }}
|
|
- --label=org.opencontainers.image.revision={{ .FullCommit }}
|
|
- image_templates:
|
|
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm32v6"
|
|
dockerfile: Dockerfile.release
|
|
goarch: arm
|
|
goarm: "6"
|
|
build_flag_templates:
|
|
- --platform
|
|
- linux/arm/v6
|
|
- --load
|
|
- --label=org.opencontainers.image.version={{ .Version }}
|
|
- --label=org.opencontainers.image.revision={{ .FullCommit }}
|
|
|
|
docker_manifests:
|
|
- name_template: "itzg/{{ .ProjectName }}:{{ .Version }}"
|
|
image_templates:
|
|
- "itzg/{{ .ProjectName }}:{{ .Version }}-amd64"
|
|
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm64"
|
|
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm32v6"
|
|
- name_template: "itzg/{{ .ProjectName }}:latest"
|
|
image_templates:
|
|
- "itzg/{{ .ProjectName }}:{{ .Version }}-amd64"
|
|
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm64"
|
|
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm32v6"
|
|
changelog:
|
|
filters:
|
|
exclude:
|
|
- '^ci:'
|
|
- '^docs:'
|
|
- '^misc:'
|
|
- '^test:'
|