Skip to content

Commit

Permalink
Update goreleaser configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
legal90 committed Jan 2, 2025
1 parent 0a20dac commit c374012
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 52 deletions.
53 changes: 53 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: 2

project_name: awscurl

before:
hooks:
- go mod download

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64

archives:
- format: zip

checksum:
name_template: "checksums.txt"

dockers:
- dockerfile: Dockerfile
goos: linux
goarch: amd64
image_templates:
- "legal90/{{.ProjectName}}:{{ .Tag }}"
- "legal90/{{.ProjectName}}:latest"
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}}"
# 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: auto

snapshot:
version_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
52 changes: 0 additions & 52 deletions .goreleaser.yml

This file was deleted.

0 comments on commit c374012

Please sign in to comment.