Skip to content

Commit 9168f9e

Browse files
committed
git commit -m 'fix: Ensure containers are tagged by release tag
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.
1 parent 3e7a3bf commit 9168f9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish-ghcr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
- 'main'
77
tags:
88
- 'v*'
9-
workflow_run:
10-
workflows: [ Releaser ]
11-
types:
12-
- completed
9+
workflow_run:
10+
workflows: [ Releaser ]
11+
types:
12+
- completed
1313
pull_request:
1414
workflow_dispatch:
1515
inputs:

0 commit comments

Comments
 (0)