mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
inital release refactor
This commit is contained in:
parent
34367f830a
commit
3351de48a6
12 changed files with 215 additions and 84 deletions
40
.goreleaser.yaml
Normal file
40
.goreleaser.yaml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
before:
|
||||
hooks:
|
||||
- go mod download
|
||||
builds:
|
||||
- env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- darwin
|
||||
- linux
|
||||
- windows
|
||||
goarch:
|
||||
- amd64
|
||||
archives:
|
||||
- format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
dockers:
|
||||
- image_templates:
|
||||
- "bikeshack.azurecr.io/magellan:latest"
|
||||
- "bikeshack.azurecr.io/magellan:{{ .Major }}"
|
||||
- "bikeshack.azurecr.io/magellan:{{ .Major }}.{{ .Minor }}"
|
||||
- "bikeshack.azurecr.io/magellan:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
|
||||
dockerfile: goreleaser.Dockerfile
|
||||
build_flag_templates:
|
||||
- "--pull"
|
||||
- "--no-cache"
|
||||
- "--build-arg=REGISTRY_HOST=docker.io/library/"
|
||||
# OCI annotations: https://github.com/opencontainers/image-spec/blob/main/annotations.md
|
||||
- "--label=org.opencontainers.image.created={{.Date}}"
|
||||
- "--label=org.opencontainers.image.name={{.ProjectName}}"
|
||||
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
||||
- "--label=org.opencontainers.image.version={{.Version}}"
|
||||
- "--label=org.opencontainers.image.source={{.GitURL}}"
|
||||
release:
|
||||
github:
|
||||
name_template: "{{.Version}}"
|
||||
prerelease: auto
|
||||
mode: append
|
||||
changelog:
|
||||
skip: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue