mirror of
https://github.com/pikami/cosmium.git
synced 2025-02-01 21:47:07 +00:00
141 lines
4.9 KiB
YAML
141 lines
4.9 KiB
YAML
builds:
|
|
- binary: cosmium
|
|
main: ./cmd/server
|
|
goos:
|
|
- darwin
|
|
- linux
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
env:
|
|
- CGO_ENABLED=0
|
|
|
|
release:
|
|
prerelease: auto
|
|
|
|
universal_binaries:
|
|
- replace: true
|
|
|
|
brews:
|
|
- name: cosmium
|
|
homepage: 'https://github.com/pikami/cosmium'
|
|
repository:
|
|
owner: pikami
|
|
name: homebrew-brew
|
|
commit_author:
|
|
name: pikami
|
|
email: git@pikami.org
|
|
skip_upload: auto
|
|
|
|
archives:
|
|
- id: bundle
|
|
format: tar.gz
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
- id: shared-libraries
|
|
meta: true
|
|
format: "tar.gz"
|
|
wrap_in_directory: true
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_shared-libraries"
|
|
files:
|
|
- LICENSE
|
|
- README.md
|
|
- sharedlibrary_dist/**
|
|
|
|
dockers:
|
|
- id: docker-linux-amd64
|
|
goos: linux
|
|
goarch: amd64
|
|
image_templates:
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-amd64"
|
|
dockerfile: Dockerfile
|
|
use: buildx
|
|
build_flag_templates:
|
|
- "--platform=linux/amd64"
|
|
- "--pull"
|
|
- "--label=org.opencontainers.image.title={{.ProjectName}}"
|
|
- "--label=org.opencontainers.image.description=Lightweight Cosmos DB emulator"
|
|
- "--label=org.opencontainers.image.url=https://github.com/pikami/cosmium"
|
|
- "--label=org.opencontainers.image.source=https://github.com/pikami/cosmium"
|
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
|
- "--label=org.opencontainers.image.version={{.Version}}"
|
|
- id: docker-linux-arm64
|
|
goos: linux
|
|
goarch: arm64
|
|
image_templates:
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-arm64"
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-arm64v8"
|
|
dockerfile: Dockerfile
|
|
use: buildx
|
|
build_flag_templates:
|
|
- "--platform=linux/arm64"
|
|
- "--pull"
|
|
- "--label=org.opencontainers.image.title={{.ProjectName}}"
|
|
- "--label=org.opencontainers.image.description=Lightweight Cosmos DB emulator"
|
|
- "--label=org.opencontainers.image.url=https://github.com/pikami/cosmium"
|
|
- "--label=org.opencontainers.image.source=https://github.com/pikami/cosmium"
|
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
|
- "--label=org.opencontainers.image.version={{.Version}}"
|
|
- id: docker-explorer-linux-amd64
|
|
goos: linux
|
|
goarch: amd64
|
|
image_templates:
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-explorer-amd64"
|
|
dockerfile: Explorer.Dockerfile
|
|
use: buildx
|
|
build_flag_templates:
|
|
- "--platform=linux/amd64"
|
|
- "--pull"
|
|
- "--label=org.opencontainers.image.title={{.ProjectName}}"
|
|
- "--label=org.opencontainers.image.description=Lightweight Cosmos DB emulator"
|
|
- "--label=org.opencontainers.image.url=https://github.com/pikami/cosmium"
|
|
- "--label=org.opencontainers.image.source=https://github.com/pikami/cosmium"
|
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
|
- "--label=org.opencontainers.image.version={{.Version}}"
|
|
- id: docker-explorer-linux-arm64
|
|
goos: linux
|
|
goarch: arm64
|
|
image_templates:
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-explorer-arm64"
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-explorer-arm64v8"
|
|
dockerfile: Explorer.Dockerfile
|
|
use: buildx
|
|
build_flag_templates:
|
|
- "--platform=linux/arm64"
|
|
- "--pull"
|
|
- "--label=org.opencontainers.image.title={{.ProjectName}}"
|
|
- "--label=org.opencontainers.image.description=Lightweight Cosmos DB emulator"
|
|
- "--label=org.opencontainers.image.url=https://github.com/pikami/cosmium"
|
|
- "--label=org.opencontainers.image.source=https://github.com/pikami/cosmium"
|
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
|
- "--label=org.opencontainers.image.version={{.Version}}"
|
|
|
|
docker_manifests:
|
|
- name_template: 'ghcr.io/pikami/{{ .ProjectName }}:latest'
|
|
skip_push: auto
|
|
image_templates:
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-amd64"
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-arm64"
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-arm64v8"
|
|
- name_template: 'ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}'
|
|
skip_push: auto
|
|
image_templates:
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-amd64"
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-arm64"
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-arm64v8"
|
|
- name_template: 'ghcr.io/pikami/{{ .ProjectName }}:explorer'
|
|
skip_push: auto
|
|
image_templates:
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-explorer-amd64"
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-explorer-arm64"
|
|
- "ghcr.io/pikami/{{ .ProjectName }}:{{ .Version }}-explorer-arm64v8"
|
|
|
|
checksum:
|
|
name_template: 'checksums.txt'
|