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
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
- bikeshack/{{.ProjectName}}:latest
- bikeshack/{{.ProjectName}}:{{ .Tag }}
- bikeshack/{{.ProjectName}}:{{ .Major }}
- bikeshack/{{.ProjectName}}:{{ .Major }}.{{ .Minor }}
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.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
archives:
- format: tar.gz
rlcp: true