Skip to content

Commit

Permalink
fix: image build (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
morremeyer authored Jan 1, 2024
1 parent a81350d commit 6bf9273
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,16 @@ changelog:
regexp: "^.*chore(deps):+.*$"
order: 3

kos:
- repository: ghcr.io/envelope-zero/backend
tags:
- "{{ .Tag }}" # v{{ .Major}}.{{ .Minor }}.{{ .Patch }}
- "v{{ .Major }}"
- "v{{ .Major }}.{{ .Minor }}"
- latest
bare: true
preserve_import_paths: false
platforms:
- linux/amd64
- linux/arm64
labels:
org.opencontainers.image.created: "{{.Date}}"
org.opencontainers.image.revision: "{{.FullCommit}}"
org.opencontainers.image.title: "{{.ProjectName}}"
org.opencontainers.image.version: "{{.Version}}"
dockers:
- dockerfile: Dockerfile.goreleaser
image_templates:
- "ghcr.io/envelope-zero/backend:{{ .Tag }}"
- "ghcr.io/envelope-zero/backend:v{{ .Major }}"
- "ghcr.io/envelope-zero/backend:v{{ .Major }}.{{ .Minor }}"
- "ghcr.io/envelope-zero/backend:latest"

build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.version={{.Version}}"

0 comments on commit 6bf9273

Please sign in to comment.