Skip to content

Commit 3c1b995

Browse files
committed
chore: add Docker build workflow trigger to release process [skip-ci]
1 parent d000ea4 commit 3c1b995

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,20 @@ jobs:
7272
env:
7373
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
7474

75+
# Trigger Docker build workflow
76+
# Note: Releases created with GITHUB_TOKEN don't trigger other workflows,
77+
# so we must explicitly dispatch the docker-publish workflow
78+
- name: Trigger Docker build
79+
if: ${{ steps.release.outputs.release_created }}
80+
env:
81+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
RELEASE_TAG: ${{ steps.release.outputs.tag_name }}
83+
run: |
84+
gh workflow run docker-publish.yml \
85+
--ref "$RELEASE_TAG" \
86+
-f release_tag="$RELEASE_TAG" \
87+
-f publish_latest=true
88+
7589
- name: Dispatch downstream repository
7690
if: ${{ steps.release.outputs.release_created }}
7791
env:

0 commit comments

Comments
 (0)