buld more standard containers

This commit is contained in:
Alex Lovell-Troy 2023-09-14 16:56:05 -04:00
parent 3262377acb
commit 4c172958c6

View file

@ -12,21 +12,16 @@ builds:
- amd64 - amd64
dockers: dockers:
- image_templates: - image_templates:
- "bikeshack.azurecr.io/magellan:latest" - bikeshack/{{.ProjectName}}:latest
- "bikeshack.azurecr.io/magellan:{{ .Major }}" - bikeshack/{{.ProjectName}}:{{ .Tag }}
- "bikeshack.azurecr.io/magellan:{{ .Major }}.{{ .Minor }}" - bikeshack/{{.ProjectName}}:{{ .Major }}
- "bikeshack.azurecr.io/magellan:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - bikeshack/{{.ProjectName}}:{{ .Major }}.{{ .Minor }}
dockerfile: goreleaser.Dockerfile
build_flag_templates: build_flag_templates:
- "--pull" - "--pull"
- "--no-cache" - "--label=org.opencontainers.image.created={{.Date}}"
- "--build-arg=REGISTRY_HOST=docker.io/library/" - "--label=org.opencontainers.image.title={{.ProjectName}}"
# OCI annotations: https://github.com/opencontainers/image-spec/blob/main/annotations.md - "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.created={{.Date}}" - "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
archives: archives:
- format: tar.gz - format: tar.gz
rlcp: true rlcp: true