2021-07-09 11:09:20 +00:00
|
|
|
project_name: driftctl
|
2021-07-15 15:33:35 +00:00
|
|
|
dist: bin
|
2021-07-09 11:09:20 +00:00
|
|
|
release:
|
|
|
|
github:
|
|
|
|
owner: cloudskiff
|
|
|
|
name: driftctl
|
|
|
|
draft: false
|
|
|
|
prerelease: auto
|
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod tidy
|
|
|
|
- go generate ./...
|
|
|
|
signs:
|
|
|
|
- signature: "${artifact}.gpg"
|
|
|
|
artifacts: checksum
|
2021-07-09 11:22:32 +00:00
|
|
|
args: [ "--batch", "-u", "{{ .Env.SIGNINGKEY }}", "--output", "${signature}", "--detach-sign", "${artifact}" ]
|
2021-07-09 11:09:20 +00:00
|
|
|
builds:
|
2021-07-15 15:33:35 +00:00
|
|
|
- id: "driftctl"
|
2021-07-09 11:09:20 +00:00
|
|
|
binary: driftctl
|
|
|
|
dir: .
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm
|
|
|
|
- arm64
|
|
|
|
- 386
|
2021-07-15 15:33:35 +00:00
|
|
|
ldflags: "-s -w -X github.com/cloudskiff/driftctl/build.env={{ .Env.ENV }} -X github.com/cloudskiff/driftctl/pkg/version.version={{ .Tag }}"
|
2021-07-09 11:09:20 +00:00
|
|
|
archives:
|
|
|
|
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
|
|
|
|
format: binary
|
|
|
|
replacements:
|
|
|
|
armv6: arm
|
|
|
|
checksum:
|
|
|
|
name_template: '{{ .ProjectName }}_SHA256SUMS'
|
|
|
|
algorithm: sha256
|
|
|
|
snapshot:
|
|
|
|
name_template: "{{ .Tag }}-next"
|
|
|
|
nfpms:
|
|
|
|
- maintainer: CloudSkiff <engineering@cloudskiff.com>
|
|
|
|
description: Detect, track and alert on infrastructure drift
|
|
|
|
homepage: https://github.com/cloudskiff/driftctl
|
|
|
|
license: Apache License 2.0
|
|
|
|
file_name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
|
|
|
|
formats:
|
|
|
|
- deb
|
|
|
|
- rpm
|
|
|
|
- apk
|