Skip to content

Commit

Permalink
ci(release): fix missing v prefix in docker tags
Browse files Browse the repository at this point in the history
should resolve: https://github.com/autotag-dev/autotag/actions/runs/12286670565/job/34287260617

>   ⨯ release failed after 40s                 error=docker manifests: failed to publish artifacts: failed to create ghcr.io/autotag-dev/autotag:1: exit status 1: manifest unknown
  • Loading branch information
joemiller committed Dec 11, 2024
1 parent 89c636b commit b3dc1ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
paths:
- /Dockerfile
- go.mod
- go.sum
- '**.go'
Expand Down
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ docker_manifests:
- "ghcr.io/autotag-dev/autotag:{{ .Tag }}-amd64"
- "ghcr.io/autotag-dev/autotag:{{ .Tag }}-arm64"

- name_template: "ghcr.io/autotag-dev/autotag:{{ .Major }}"
- name_template: "ghcr.io/autotag-dev/autotag:v{{ .Major }}"
image_templates:
- "ghcr.io/autotag-dev/autotag:{{ .Major }}-amd64"
- "ghcr.io/autotag-dev/autotag:{{ .Major }}-arm64"
- "ghcr.io/autotag-dev/autotag:v{{ .Major }}-amd64"
- "ghcr.io/autotag-dev/autotag:v{{ .Major }}-arm64"

- name_template: "ghcr.io/autotag-dev/autotag:{{ .Major }}.{{ .Minor }}"
- name_template: "ghcr.io/autotag-dev/autotag:v{{ .Major }}.{{ .Minor }}"
image_templates:
- "ghcr.io/autotag-dev/autotag:v{{ .Major }}.{{ .Minor }}-amd64"
- "ghcr.io/autotag-dev/autotag:v{{ .Major }}.{{ .Minor }}-arm64"
Expand Down

0 comments on commit b3dc1ce

Please sign in to comment.