Skip to content

fix: Ensure containers are tagged by release tag #1006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sumitvekariya
Copy link

This commit fixes issue #934 where the container publishing CI workflow only tagged containers by commit SHA and not by the release tag.

The primary issue was an incorrect nesting of the workflow_run trigger within the push trigger in the .github/workflows/publish-ghcr.yml file. This prevented the workflow from being correctly triggered upon the completion of the Releaser workflow, which is responsible for creating Git tags and GitHub releases.

This change corrects the workflow trigger syntax, ensuring that the container build and publish workflow runs after a release is made, allowing it to use the semantic version tag for the container image.

This commit fixes issue filecoin-project#934 where the container publishing CI workflow
only tagged containers by commit SHA and not by the release tag.

The primary issue was an incorrect nesting of the `workflow_run` trigger
within the `push` trigger in the `.github/workflows/publish-ghcr.yml` file.
This prevented the workflow from being correctly triggered upon the completion
of the `Releaser` workflow, which is responsible for creating Git tags
and GitHub releases.

This change corrects the workflow trigger syntax, ensuring that the
container build and publish workflow runs after a release is made,
allowing it to use the semantic version tag for the container image.
@Copilot Copilot AI review requested due to automatic review settings May 24, 2025 15:40
@github-project-automation github-project-automation bot moved this to Todo in F3 May 24, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the trigger configuration in the GitHub Actions workflow so that the publish-ghcr job runs after the Releaser workflow completes, allowing container images to be tagged by the released semantic version.

  • Moved workflow_run trigger out of the push block into the top-level on section
  • Ensures the publish-ghcr workflow is invoked when the Releaser workflow finishes

@BigLep BigLep requested a review from Kubuxu May 27, 2025 06:19
@BigLep BigLep moved this from Todo to In review in F3 May 27, 2025
@Kubuxu Kubuxu enabled auto-merge May 27, 2025 08:50
@Kubuxu Kubuxu added this pull request to the merge queue May 27, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

2 participants