Skip to content

ci: add placeholder image-build/image-push workflows for #8609 (#8706) [skip ci] - #8706

Merged
rfay merged 1 commit into
ddev:mainfrom
rfay:20260814_rfay_stub_image_workflows
Aug 14, 2026
Merged

rfay merged 1 commit into
ddev:mainfrom
rfay:20260814_rfay_stub_image_workflows

Conversation

@rfay

@rfay rfay commented Aug 14, 2026

Copy link
Copy Markdown
Member

Short Summary (TL;DR)

Do-nothing placeholder versions of two upcoming #8609 phase 2 workflows, so their names/triggers exist on main before that larger PR lands.

The Issue

Related to #8609 (phase 2). workflow_run only fires for a listener workflow already on the default branch, so testing the real image-push.yml is blocked until something with that name exists on main.

How This PR Solves The Issue

Adds image-build-push.yml ("Image build") and image-push.yml ("Image push") with the real triggers but a single echo step each. No secrets, no build/push logic. The phase 2 branch will be rebased onto this, replacing the stub bodies under the same names.

Manual Testing Instructions

Open a PR touching containers/**; confirm both workflows run their placeholder step.

Automated Testing Overview

None - inert placeholder.

Release/Deployment Notes

No functional change. Safe to merge independently of phase 2.

…dev#8609 [skip ci]

Adds trivial, do-nothing versions of the two new workflows from the ddev#8609 phase 2 work (fork-safe automatic image build/push) so their names and triggers are registered on `main` ahead of that larger PR, unblocking end-to-end testing of the `workflow_run` dependency between them.

- Related to ddev#8609 (phase 2)

`image-push.yml`'s `workflow_run` trigger only fires for a listener workflow that already exists on the repository's default branch - a brand-new file only present on a feature branch/PR never triggers, silently. That makes the full detect -> approval -> build -> push chain from the phase 2 PR hard to test end-to-end until something with these two workflow names is already on `main`.

Adds `image-build-push.yml` ("Image build") and `image-push.yml` ("Image push") with the same names and trigger conditions the real phase 2 versions will use, but with a single do-nothing job each. No secrets, no environment, no build/push logic - this PR has no effect on CI beyond two near-instant extra jobs on `containers/**` PRs.

The phase 2 branch will be rebased onto this once merged, replacing these stub bodies with the real detect/approval/build/push implementation under the same filenames and workflow names, so `workflow_run` keeps resolving correctly.

Open a PR touching `containers/**` and confirm "Image build" runs and completes with its one placeholder step, then confirm "Image push" fires afterward (workflow_run) and also completes with its placeholder step.

None - these are intentionally inert placeholder workflows.

No functional change to any existing workflow. Safe to merge independently of the phase 2 PR.
@rfay
rfay requested a review from a team as a code owner August 14, 2026 20:56
@rfay rfay changed the title ci: add placeholder image-build/image-push workflows for #8609 ci: add placeholder image-build/image-push workflows for #8609 (#8706) [skip ci] Aug 14, 2026
@rfay
rfay merged commit ccbe3c0 into ddev:main Aug 14, 2026
10 checks passed
@rfay
rfay deleted the 20260814_rfay_stub_image_workflows branch August 14, 2026 20:57
rfay added a commit to rfay/ddev that referenced this pull request Aug 14, 2026
…ed as a YAML comment [skip ci]

The do-nothing placeholder workflows added in ddev#8706 are currently failing on every PR that touches `containers/**` (e.g. ddev#8705), because their unquoted `name:`/`run:` strings contain `ddev#8609`, and YAML treats a space followed by `#` as a comment start even mid-string - truncating both values and leaving `run:` with an unterminated quote.

- Fixes CI breakage introduced by ddev#8706, related to ddev#8609

`name: Placeholder (see ddev#8609)` parses as `Placeholder (see`, and `run: echo "Placeholder for ddev#8609 ..."` parses as `echo "Placeholder for` - invalid bash (`unexpected EOF while looking for matching "`), failing the "Image build"/"Image push" placeholder job on every containers/-touching PR since ddev#8706 merged.

Quotes the `name:` values and switches the `run:` values to block scalars (`run: |`), which aren't subject to inline comment stripping. Verified both files' `ddev#8609` strings now parse intact and the `run` command executes cleanly. Scanned all other workflow files for the same pattern; found nothing else affected.

Open (or re-run) a PR touching `containers/**` and confirm the "Image build" placeholder job now passes.

Verified via `python3 -c "import yaml; ..."` that both files' `name`/`run` values now parse to their full intended strings, and ran the resulting `run` command through bash directly to confirm it executes without error. No new tests needed for a two-file YAML quoting fix.

Fixes an active CI failure on `main` affecting every PR that touches `containers/**`. No other workflow changes.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WqmDPsdWxQjwGu3LFNzGLg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant