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 c701c9c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,25 @@ jobs:
- name: Autotag Merge Commit
# TODO: replace this with GitHub Action after #41
run: |
./autotag/autotag
./autotag/autotag -b joem/fix-release-missing-v-prefix
echo "tags:" && git tag -l
- name: Install rpm
run: |
sudo apt-get -qqy update && sudo apt-get -qqy install rpm
# setup qemu and buildx for cross-builds (arm64)
- name: Set up QEMU (for arm64 builds)
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3

# finally run goreleaser to build and publish all artifacts:
- name: Deploy Autotag Release
# TODO(vtopc): switch to the `goreleaser/goreleaser-action` GHA?
run: |
curl -sL https://git.io/goreleaser | bash -s -- --parallelism=2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 c701c9c

Please sign in to comment.