SeineAI / SeineSailor

Help developers navigating through the codebase smoothly
MIT License
4 stars 7 forks source link

new release cannot be created #21

Closed wenboown closed 5 months ago

wenboown commented 5 months ago

problem:

when running the Release action, new release are not created. We got the following bug in several runs since v0.1.25: https://github.com/SeineAI/SeineSailor/actions/runs/9134842334/job/25121187522

[debug]buildCmd.command: docker

[debug]buildCmd.args: ["buildx","build","--cache-from","type=gha","--cache-to","type=gha,mode=max","--file","./Dockerfile","--iidfile","/home/runner/work/_temp/docker-actions-toolkit-mWaE87/iidfile","--platform","linux/amd64","--provenance","false","--sbom","false","--tag","ghcr.io/seineai/seine_sailor:latest","--tag","ghcr.io/seineai/seine_sailor:","--tag","ghcr.io/seineai/seine_sailor:","--metadata-file","/home/runner/work/_temp/docker-actions-toolkit-mWaE87/metadata-file","--push","."]

[debug]Exec.getExecOutput: docker buildx build --cache-from type=gha --cache-to type=gha,mode=max --file ./Dockerfile --iidfile /home/runner/work/_temp/docker-actions-toolkit-mWaE87/iidfile --platform linux/amd64 --provenance false --sbom false --tag ghcr.io/seineai/seine_sailor:latest --tag ghcr.io/seineai/seine_sailor: --tag ghcr.io/seineai/seine_sailor: --metadata-file /home/runner/work/_temp/docker-actions-toolkit-mWaE87/metadata-file --push .

/usr/bin/docker buildx build --cache-from type=gha --cache-to type=gha,mode=max --file ./Dockerfile --iidfile /home/runner/work/_temp/docker-actions-toolkit-mWaE87/iidfile --platform linux/amd64 --provenance false --sbom false --tag ghcr.io/seineai/seine_sailor:latest --tag ghcr.io/seineai/seine_sailor: --tag ghcr.io/seineai/seine_sailor: --metadata-file /home/runner/work/_temp/docker-actions-toolkit-mWaE87/metadata-file --push . ERROR: invalid tag "ghcr.io/seineai/seine_sailor:": invalid reference format Error: buildx failed with: ERROR: invalid tag "ghcr.io/seineai/seine_sailor:": invalid reference format

It seems that the needs.create_release.outputs.full-tag and needs.create_release.outputs.short-tag are empty strings

wenboown commented 5 months ago

It seems that the problem is we added this code to release.yml in 238ab7d

https://github.com/SeineAI/SeineSailor/blob/238ab7dd9749707659efdf230a8eb276450f05dd/.github/workflows/release.yml#L49-L54

It created a latest tag in the repo. Ever since then, the release-drafter cannot create new release numbers. Even after we deleted this part of the code.

The solution is

Manual Cleanup of Tags

You can manually delete the problematic latest tag from your repository to see if it resolves the issue. Here’s how to do it:

  1. List Tags:

    git tag -l
  2. Delete Local Tag:

    git tag -d latest
  3. Delete Remote Tag:

    git push origin --delete latest