diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 176febc..69893b2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,6 +5,7 @@ on: branches: - main paths: + - /Dockerfile - go.mod - go.sum - '**.go' diff --git a/.goreleaser.yml b/.goreleaser.yml index b662d3b..bb23f1f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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"