Skip to content

Commit

Permalink
Merge pull request #134 from autotag-dev/joem/fix-release-missing-v-p…
Browse files Browse the repository at this point in the history
…refix

ci(release): fix missing v prefix in docker tags
  • Loading branch information
joemiller authored Dec 12, 2024
2 parents 611b359 + c39bc88 commit cafd0cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:
run: |
curl -sL https://git.io/goreleaser | bash -s -- --parallelism=2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 6 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ dockers:
- "ghcr.io/autotag-dev/autotag:v{{ .Major }}-amd64" # v1-amd64
- "ghcr.io/autotag-dev/autotag:v{{ .Major }}.{{ .Minor }}-amd64" # v1.0-amd64
- "ghcr.io/autotag-dev/autotag:latest-amd64"
goarch: amd64

- dockerfile: Dockerfile
use: buildx
Expand All @@ -130,6 +131,7 @@ dockers:
- "ghcr.io/autotag-dev/autotag:v{{ .Major }}-arm64" # v1-arm64
- "ghcr.io/autotag-dev/autotag:v{{ .Major }}.{{ .Minor }}-arm64" # v1.0-arm64
- "ghcr.io/autotag-dev/autotag:latest-arm64"
goarch: arm64

# use `docker_manifests` section to create combined multi-arch image manifests:
docker_manifests:
Expand All @@ -138,12 +140,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 cafd0cd

Please sign in to comment.