Fix rebuild-all.yml: broken shell loop in push-images step #40

Closed
opened 2026-03-13 14:33:45 +00:00 by kert · 0 comments
Owner

Problem

The push-images step has a for loop split across YAML list items:

commands:
  - for SVC in notebooks zotero docs; do
  -   docker tag fhirworx/$SVC:$TAG ...
  - done

Each - is a separate command. The shell receives for ... do without done (syntax error), then standalone docker tag with undefined $SVC.

Also, rebuild-all.yml has no depends_on at all, so build/scan/push steps run in parallel — scans start before builds finish.

Fix

Use a YAML block scalar (|) for the loop and add proper depends_on ordering.

Acceptance criteria

  • Manual trigger of rebuild-all pipeline completes successfully
  • All three images are built, scanned, tagged, and pushed in correct order
## Problem The `push-images` step has a `for` loop split across YAML list items: ```yaml commands: - for SVC in notebooks zotero docs; do - docker tag fhirworx/$SVC:$TAG ... - done ``` Each `- ` is a separate command. The shell receives `for ... do` without `done` (syntax error), then standalone `docker tag` with undefined `$SVC`. Also, rebuild-all.yml has no `depends_on` at all, so build/scan/push steps run in parallel — scans start before builds finish. ## Fix Use a YAML block scalar (`|`) for the loop and add proper `depends_on` ordering. ## Acceptance criteria - Manual trigger of rebuild-all pipeline completes successfully - All three images are built, scanned, tagged, and pushed in correct order
kert added this to the P9: CI/CD Unification milestone 2026-03-13 14:33:45 +00:00
kert added the quality label 2026-03-13 14:33:45 +00:00
kert closed this issue 2026-03-13 14:37:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/stack#40