Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) add goreleaser basic config #1022

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ result

# ignore JetBrains IDEs (GoLand) config folder
.idea

# goreleaser dist dir
dist/
58 changes: 58 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
# before:
# hooks:
# # You may remove this if you don't use go modules.
# - go mod download
# # you may remove this if you don't need go generate
# - go generate ./...
builds:
- id: "linux"
env:
- CGO_ENABLED=1
goos:
- linux
dir: cmd/skopeo
binary: skopeo
goarch:
- amd64

archives:
- replacements:
linux: Linux
amd64: x86_64

nfpms:
- id: linux
formats:
- deb
- rpm
overrides:
deb:
dependencies:
- libgpgme11
- libdevmapper1.02.1
- ca-certificates
rpm:
dependencies:
- device-mapper-devel
source:
enabled: true
dockers:
- builds:
- linux
image_templates:
- "containers/{{.ProjectName}}:{{ .Tag }}"
- "containers/{{.ProjectName}}:v{{ .Major }}"
- "containers/{{.ProjectName}}:v{{ .Major }}.{{ .Minor }}"
- "containers/{{.ProjectName}}:latest"
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"