2021-06-26 01:40:26 +00:00
|
|
|
project_name: fleet
|
|
|
|
|
2021-08-04 18:41:37 +00:00
|
|
|
monorepo:
|
|
|
|
tag_prefix: fleet-
|
|
|
|
dir: .
|
|
|
|
|
2021-06-26 01:40:26 +00:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- make deps
|
|
|
|
- make generate
|
|
|
|
|
2021-06-26 05:03:08 +00:00
|
|
|
# gomod:
|
|
|
|
# proxy: true
|
2021-06-26 01:40:26 +00:00
|
|
|
|
|
|
|
builds:
|
|
|
|
- id: fleet
|
|
|
|
dir: ./cmd/fleet/
|
|
|
|
binary: fleet
|
|
|
|
env:
|
2021-08-11 17:52:09 +00:00
|
|
|
- CGO_ENABLED=1
|
2021-06-26 01:40:26 +00:00
|
|
|
goos:
|
|
|
|
- darwin
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
flags:
|
|
|
|
- -tags=full
|
|
|
|
- -trimpath
|
|
|
|
ldflags:
|
|
|
|
- -X github.com/kolide/kit/version.appName={{ .ArtifactName }}
|
|
|
|
- -X github.com/kolide/kit/version.version={{ .Version }}
|
|
|
|
- -X github.com/kolide/kit/version.branch={{ .Branch }}
|
|
|
|
- -X github.com/kolide/kit/version.revision={{ .FullCommit }}
|
|
|
|
- -X github.com/kolide/kit/version.buildDate={{ time "2006-01-02" }}
|
|
|
|
- -X github.com/kolide/kit/version.buildUser={{ .Env.USER }}
|
|
|
|
|
|
|
|
- id: fleetctl
|
|
|
|
dir: ./cmd/fleetctl/
|
|
|
|
binary: fleetctl
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- darwin
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
flags:
|
|
|
|
- -trimpath
|
|
|
|
ldflags:
|
|
|
|
- -X github.com/kolide/kit/version.appName={{ .ArtifactName }}
|
|
|
|
- -X github.com/kolide/kit/version.version={{ .Version }}
|
|
|
|
- -X github.com/kolide/kit/version.branch={{ .Branch }}
|
|
|
|
- -X github.com/kolide/kit/version.revision={{ .FullCommit }}
|
|
|
|
- -X github.com/kolide/kit/version.buildDate={{ time "2006-01-02" }}
|
|
|
|
- -X github.com/kolide/kit/version.buildUser={{ .Env.USER }}
|
|
|
|
|
|
|
|
archives:
|
|
|
|
- id: fleet
|
|
|
|
builds:
|
|
|
|
- fleet
|
|
|
|
- fleetctl
|
2021-06-28 18:10:46 +00:00
|
|
|
name_template: fleet_v{{.Version}}_{{.Os}}
|
2021-06-26 01:40:26 +00:00
|
|
|
replacements:
|
|
|
|
darwin: macos
|
|
|
|
format_overrides:
|
|
|
|
- goos: windows
|
|
|
|
format: zip
|
2021-06-28 18:10:46 +00:00
|
|
|
wrap_in_directory: true
|
2021-06-26 01:40:26 +00:00
|
|
|
|
|
|
|
- id: fleetctl
|
|
|
|
builds:
|
|
|
|
- fleetctl
|
2021-06-28 18:10:46 +00:00
|
|
|
name_template: fleetctl_v{{.Version}}_{{.Os}}
|
2021-06-26 01:40:26 +00:00
|
|
|
replacements:
|
|
|
|
darwin: macos
|
2021-06-28 18:10:46 +00:00
|
|
|
wrap_in_directory: true
|
2021-06-26 01:40:26 +00:00
|
|
|
|
|
|
|
- id: fleetctl-zip
|
|
|
|
builds:
|
|
|
|
- fleetctl
|
2021-06-28 18:10:46 +00:00
|
|
|
name_template: fleetctl_v{{.Version}}_{{.Os}}
|
2021-06-26 01:40:26 +00:00
|
|
|
format: zip
|
|
|
|
replacements:
|
|
|
|
darwin: macos
|
2021-06-28 18:10:46 +00:00
|
|
|
wrap_in_directory: true
|
2021-06-26 01:40:26 +00:00
|
|
|
|
|
|
|
dockers:
|
|
|
|
- goos: linux
|
|
|
|
goarch: amd64
|
|
|
|
ids:
|
|
|
|
- fleet
|
|
|
|
- fleetctl
|
|
|
|
dockerfile: tools/docker/fleet.Dockerfile
|
|
|
|
image_templates:
|
|
|
|
- 'fleetdm/fleet:latest'
|
|
|
|
- 'fleetdm/fleet:{{ .Tag }}'
|
|
|
|
- 'fleetdm/fleet:{{ .Tag }}'
|
|
|
|
- 'fleetdm/fleet:v{{ .Major }}'
|
|
|
|
|
|
|
|
- goos: linux
|
|
|
|
goarch: amd64
|
|
|
|
ids:
|
|
|
|
- fleetctl
|
|
|
|
dockerfile: tools/docker/fleetctl.Dockerfile
|
|
|
|
image_templates:
|
|
|
|
- 'fleetdm/fleetctl:latest'
|
|
|
|
- 'fleetdm/fleetctl:{{ .Tag }}'
|
|
|
|
- 'fleetdm/fleetctl:{{ .Tag }}'
|
|
|
|
- 'fleetdm/fleetctl:v{{ .Major }}'
|
|
|
|
|
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
|
|
|
|
snapshot:
|
|
|
|
name_template: "{{ .Tag }}-untagged"
|
|
|
|
|
|
|
|
changelog:
|
|
|
|
skip: true
|
|
|
|
|
|
|
|
release:
|
|
|
|
github:
|
|
|
|
owner: fleetdm
|
|
|
|
name: fleet
|
|
|
|
draft: true
|
|
|
|
prerelease: auto
|