2020-12-18 08:24:57 +01:00
|
|
|
env:
|
|
|
|
- GO111MODULE=on
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
|
|
|
|
builds:
|
|
|
|
- binary: doggo
|
2021-03-02 14:28:49 +01:00
|
|
|
id: cli
|
2020-12-18 08:24:57 +01:00
|
|
|
goos:
|
|
|
|
- windows
|
|
|
|
- darwin
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
goarm:
|
|
|
|
- 6
|
|
|
|
- 7
|
|
|
|
ldflags:
|
|
|
|
- -s -w -X "main.buildVersion={{ .Tag }} ({{ .ShortCommit }} {{ .Date }})"
|
2021-06-25 15:32:00 +02:00
|
|
|
dir: ./cmd/doggo/
|
2021-03-02 14:28:49 +01:00
|
|
|
|
|
|
|
- binary: doggo-api.bin
|
|
|
|
id: api
|
|
|
|
goos:
|
|
|
|
- windows
|
|
|
|
- darwin
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
goarm:
|
|
|
|
- 6
|
|
|
|
- 7
|
|
|
|
ldflags:
|
|
|
|
- -s -w -X "main.buildVersion={{ .Tag }} ({{ .ShortCommit }} {{ .Date }})"
|
2021-06-25 15:32:00 +02:00
|
|
|
dir: ./cmd/api/
|
2020-12-18 08:24:57 +01:00
|
|
|
|
|
|
|
archives:
|
|
|
|
- format: tar.gz
|
|
|
|
files:
|
|
|
|
- README.md
|
|
|
|
- LICENSE
|
2021-04-21 08:10:21 +02:00
|
|
|
- completions/
|
2020-12-18 08:24:57 +01:00
|
|
|
|
|
|
|
dockers:
|
2021-03-02 14:28:49 +01:00
|
|
|
- image_templates:
|
2021-03-11 07:40:59 +01:00
|
|
|
- "ghcr.io/mr-karan/doggo:{{ .Tag }}"
|
|
|
|
- "ghcr.io/mr-karan/doggo:latest"
|
2021-12-20 17:27:08 +01:00
|
|
|
id: doggo
|
|
|
|
# IDs to filter the binaries/packages.
|
|
|
|
ids:
|
|
|
|
- cli
|
2021-03-02 14:28:49 +01:00
|
|
|
dockerfile: Dockerfile-cli
|
|
|
|
build_flag_templates:
|
|
|
|
- "--build-arg"
|
|
|
|
- "ARCH=amd64"
|
|
|
|
- image_templates:
|
2021-03-11 07:40:59 +01:00
|
|
|
- "ghcr.io/mr-karan/doggo:{{ .Tag }}-arm64v8"
|
|
|
|
- "ghcr.io/mr-karan/doggo:latest-arm64v8"
|
2021-12-20 17:27:08 +01:00
|
|
|
id: doggo-arm
|
|
|
|
# IDs to filter the binaries/packages.
|
|
|
|
ids:
|
|
|
|
- cli
|
2021-03-02 14:28:49 +01:00
|
|
|
goarch: arm64
|
|
|
|
dockerfile: Dockerfile-cli
|
|
|
|
build_flag_templates:
|
|
|
|
- "--build-arg"
|
|
|
|
- "ARCH=arm64v8"
|
|
|
|
|
2022-03-24 08:13:33 +01:00
|
|
|
# - image_templates:
|
|
|
|
# - "ghcr.io/mr-karan/doggo-api:{{ .Tag }}"
|
|
|
|
# - "ghcr.io/mr-karan/doggo-api:latest"
|
|
|
|
# id: doggo-api
|
|
|
|
# ids:
|
|
|
|
# - api
|
|
|
|
# dockerfile: Dockerfile-api
|
|
|
|
# build_flag_templates:
|
|
|
|
# - "--build-arg"
|
|
|
|
# - "ARCH=amd64"
|
|
|
|
# extra_files:
|
|
|
|
# - config-api-sample.toml
|
|
|
|
# - image_templates:
|
|
|
|
# - "ghcr.io/mr-karan/doggo-api:{{ .Tag }}-arm64v8"
|
|
|
|
# - "ghcr.io/mr-karan/doggo-api:latest-arm64v8"
|
|
|
|
# id: doggo-api-arm
|
|
|
|
# ids:
|
|
|
|
# - api
|
|
|
|
# goarch: arm64
|
|
|
|
# dockerfile: Dockerfile-api
|
|
|
|
# build_flag_templates:
|
|
|
|
# - "--build-arg"
|
|
|
|
# - "ARCH=arm64v8"
|
|
|
|
# extra_files:
|
|
|
|
# - config-api-sample.toml
|