Skip to content

CI: release tags are not publishing versioned Docker images to GHCR #37

@PraveenHarris

Description

@PraveenHarris

Summary

Versioned Docker image tags (e.g., 1.5.3, v1.5.3) are not being published to GHCR, even though releases are created via semantic-release.

Current Behavior

  • On merge to main:
    • build-docker.yml publishes main and latest images
    • release.yml creates a Git tag (e.g., v1.5.3)
  • Docker images for the release tag are not published

Root Cause

  • Release tags are created using GITHUB_TOKEN
  • GitHub does not trigger workflows from events caused by GITHUB_TOKEN
  • As a result, the build workflow does not run for the new tag

Proposed Solution

  • Move Docker image publishing into release.yml after semantic-release
  • Keep build-docker.yml for main and latest images
  • Tag release images with:
    • 1.5.3
    • v1.5.3

Source from GitHub: When you use the repository's GITHUB_TOKEN to perform tasks, events triggered by the GITHUB_TOKEN, with the exception of workflow_dispatch [manually triggered] and repository_dispatch [triggered via API], will not create a new workflow run. (ours is push event)

In the short term, can you please trigger build-docker.yml manually so we have the tag available in GHCR. Thanks!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions