2019-08-09 01:17:39 +00:00
|
|
|
project_name: portainer-stack-utils
|
2019-08-08 14:06:16 +00:00
|
|
|
env:
|
|
|
|
- GO111MODULE=on
|
2019-07-21 02:00:04 +00:00
|
|
|
before:
|
|
|
|
hooks:
|
2019-08-08 14:06:16 +00:00
|
|
|
- go mod download
|
2019-07-21 02:00:04 +00:00
|
|
|
builds:
|
|
|
|
- main: main.go
|
|
|
|
binary: psu
|
|
|
|
ldflags:
|
2019-08-09 05:28:31 +00:00
|
|
|
- -X github.com/greenled/portainer-stack-utils/common.version={{ .Version }} -X github.com/greenled/portainer-stack-utils/common.commitHash={{ .ShortCommit }} -X github.com/greenled/portainer-stack-utils/common.buildDate={{ .Date }}
|
2019-07-21 02:00:04 +00:00
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- darwin
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
goarch:
|
|
|
|
- 386
|
|
|
|
- amd64
|
|
|
|
- arm
|
|
|
|
- arm64
|
|
|
|
goarm:
|
|
|
|
- 7
|
|
|
|
archives:
|
|
|
|
- format: tar.gz
|
|
|
|
format_overrides:
|
|
|
|
- goos: windows
|
|
|
|
format: zip
|
|
|
|
replacements:
|
|
|
|
386: 32bit
|
|
|
|
amd64: 64bit
|
|
|
|
arm: ARM
|
|
|
|
arm64: ARM64
|
|
|
|
darwin: macOS
|
|
|
|
linux: Linux
|
|
|
|
windows: Windows
|
2019-08-09 01:17:31 +00:00
|
|
|
release:
|
|
|
|
github:
|
|
|
|
owner: greenled
|
|
|
|
name: portainer-stack-utils
|
|
|
|
prerelease: auto
|
2019-07-21 02:00:04 +00:00
|
|
|
dockers:
|
|
|
|
- image_templates:
|
2019-08-10 02:41:07 +00:00
|
|
|
- "{{ .Env.CI_REGISTRY_IMAGE }}:{{ .Major }}"
|
|
|
|
- "{{ .Env.CI_REGISTRY_IMAGE }}:{{ .Major }}.{{ .Minor }}"
|
|
|
|
- "{{ .Env.CI_REGISTRY_IMAGE }}:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
|
2019-07-21 02:00:04 +00:00
|
|
|
goos: linux
|
|
|
|
goarch: amd64
|
|
|
|
binaries:
|
|
|
|
- psu
|
2019-08-08 23:52:21 +00:00
|
|
|
skip_push: auto
|
2019-07-21 02:00:04 +00:00
|
|
|
dockerfile: Dockerfile
|
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
2019-08-09 15:15:15 +00:00
|
|
|
snapshot:
|
|
|
|
name_template: SNAPSHOT
|