Skip to content

Commit

Permalink
fix goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
4nte committed Jul 12, 2023
1 parent 26d8a5e commit 84f1c7c
Showing 1 changed file with 47 additions and 56 deletions.
103 changes: 47 additions & 56 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# you may remove this if you don't use vgo
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
# you may remove this if you don't use vgo
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
Expand All @@ -29,60 +22,58 @@ changelog:


dockers:
# You can have multiple Docker images.
-
# GOOS of the built binary that should be used.
goos: linux
# You can have multiple Docker images.
- # GOOS of the built binary that should be used.
goos: linux

# GOARCH of the built binary that should be used.
goarch: amd64
# GOARCH of the built binary that should be used.
goarch: amd64

# GOARM of the built binary that should be used.
goarm: ''
# GOARM of the built binary that should be used.
goarm: ''

ids:
- mqtt-mirror
ids:
- mqtt-mirror

# Templates of the Docker image names.
image_templates:
- "antegulin/mqtt-mirror:latest"
- "antegulin/mqtt-mirror:{{ .Tag }}"
- "antegulin/mqtt-mirror:v{{ .Major }}"
# Templates of the Docker image names.
image_templates:
- "antegulin/mqtt-mirror:latest"
- "antegulin/mqtt-mirror:{{ .Tag }}"
- "antegulin/mqtt-mirror:v{{ .Major }}"

# Skips the docker push. Could be useful if you also do draft releases.
# If set to auto, the release will not be pushed to the docker repository
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Defaults to false.
skip_push: false
# Skips the docker push. Could be useful if you also do draft releases.
# If set to auto, the release will not be pushed to the docker repository
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Defaults to false.
skip_push: false

# Path to the Dockerfile (from the project root).
dockerfile: Dockerfile
# Path to the Dockerfile (from the project root).
dockerfile: Dockerfile

# Template of the docker build flags.
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
# Template of the docker build flags.
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"

brews:
-
# Github repository to push the tap to.
tap:
owner: 4nte
name: homebrew-tap
- # Github repository to push the tap to.
tap:
owner: 4nte
name: homebrew-tap

# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: goreleaserbot
email: [email protected]
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: goreleaserbot
email: [email protected]

# Your app's homepage.
# Default is empty.
homepage: "https://github.com/4nte/mqtt-mirror"
# Your app's homepage.
# Default is empty.
homepage: "https://github.com/4nte/mqtt-mirror"

# Your app's description.
# Default is empty.
description: "Replicate MQTT traffic from one broker to another."
# Your app's description.
# Default is empty.
description: "Replicate MQTT traffic from one broker to another."

0 comments on commit 84f1c7c

Please sign in to comment.