mirror of
https://github.com/valitydev/botkube.git
synced 2024-11-06 08:25:19 +00:00
a48b8276a0
##### ISSUE TYPE - Bug fix Pull Request ##### SUMMARY project_name field was made mandatory in new goreleaser version, due to this make container-build was failing added this field in .gorelease.yml to fix this issue
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
project_name: botkube
|
|
before:
|
|
hooks:
|
|
- go mod download
|
|
builds:
|
|
- id: botkube
|
|
binary: botkube
|
|
main: cmd/botkube/main.go
|
|
ldflags: &ldflags
|
|
- -s -w
|
|
-X github.com/infracloudio/botkube/pkg/version.Version={{ .Tag }}
|
|
-X github.com/infracloudio/botkube/pkg/version.GitCommitID={{ .Commit }}
|
|
-X github.com/infracloudio/botkube/pkg/version.BuildDate={{ .Date }}
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
- arm
|
|
- arm64
|
|
goarm:
|
|
- 7
|
|
snapshot:
|
|
name_template: "{{ .Tag }}"
|
|
changelog:
|
|
skip: true
|
|
dockers:
|
|
- image_templates:
|
|
- "ghcr.io/infracloudio/botkube:{{ .Tag }}-amd64"
|
|
use: buildx
|
|
dockerfile: "build/Dockerfile"
|
|
build_flag_templates:
|
|
- "--platform=linux/amd64"
|
|
- "--build-arg=botkube_version={{ .Tag }}"
|
|
- image_templates:
|
|
- "ghcr.io/infracloudio/botkube:{{ .Tag }}-arm64"
|
|
use: buildx
|
|
goarch: arm64
|
|
dockerfile: "build/Dockerfile"
|
|
build_flag_templates:
|
|
- "--platform=linux/arm64"
|
|
- "--build-arg=botkube_version={{ .Tag }}"
|
|
- image_templates:
|
|
- "ghcr.io/infracloudio/botkube:{{ .Tag }}-armv7"
|
|
use: buildx
|
|
goarch: arm
|
|
goarm: 7
|
|
dockerfile: "build/Dockerfile"
|
|
build_flag_templates:
|
|
- "--platform=linux/arm"
|
|
- "--build-arg=botkube_version={{ .Tag }}"
|
|
|
|
docker_manifests:
|
|
- name_template: ghcr.io/infracloudio/botkube:{{ .Tag }}
|
|
image_templates:
|
|
- ghcr.io/infracloudio/botkube:{{ .Tag }}-amd64
|
|
- ghcr.io/infracloudio/botkube:{{ .Tag }}-arm64
|
|
- ghcr.io/infracloudio/botkube:{{ .Tag }}-armv7
|