From b3dc1ceda0c70c7e2e51e074d14ff0b3e4681f54 Mon Sep 17 00:00:00 2001 From: joe miller Date: Wed, 11 Dec 2024 23:28:48 +0000 Subject: [PATCH] ci(release): fix missing v prefix in docker tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/release.yaml | 1 + .goreleaser.yml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) 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"