Skip to content

ci(release): trigger docker build via workflow_dispatch - #297

Merged
raaymax merged 2 commits into
devfrom
ci/fix-release-docker-dispatch
Jun 16, 2026
Merged

ci(release): trigger docker build via workflow_dispatch#297
raaymax merged 2 commits into
devfrom
ci/fix-release-docker-dispatch

Conversation

@raaymax

@raaymax raaymax commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the release workflow, which startup_failured on the v3.5.1 release (PR #295) — the GitHub Release and image build never ran.

Root cause

The docker: job added to release.yml called docker.yml as a reusable workflow (uses: ./.github/workflows/docker.yml) from a pull_request-triggered workflow. v3.5.1 was the first release to exercise it, and that call fails workflow validation at startup (the whole run dies in ~1s with zero jobs and no usable error — GitHub only reports "workflow file issue"). The previous v3.5.0 release predated this job and ran fine.

Fix

Replace the reusable-workflow call with an explicit workflow_dispatch of docker.yml:

  • release.yml: after creating the Release, dispatch docker.yml on main with the version via actions/github-script (createWorkflowDispatch). Adds actions: write permission (required to dispatch) and drops the now-unused outputs/docker reusable job.
  • docker.yml: add an optional version input to workflow_dispatch so the dispatched build tags the image correctly (APP_VERSION / image tag already fall back to github.ref_name).

This avoids the fragile reusable-call-from-pull_request pattern. A token-created release/tag does not trigger on: push: tags, so the explicit dispatch is the reliable chain.

Note

v3.5.1 was recovered manually (tag pushed → image built & published, Release created). This fix takes effect from the next release.

@raaymax
raaymax merged commit 62a4dde into dev Jun 16, 2026
1 check passed
@raaymax
raaymax deleted the ci/fix-release-docker-dispatch branch June 16, 2026 14:44
@raaymax raaymax mentioned this pull request Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant