Regression in 0.3.5: supplemental images (db-backup, migrations, geoip, ...) are built and scanned on release builds but never pushed. kof22 0.1.75 went into ImagePullBackOff; its docker job log ends with All supplemental images built and scanned (push=1).
Root cause:#32 added a boolean push parameter (default true) passed as PUSH_IMAGES: << parameters.push >>. CircleCI renders it as 1/0 in the step environment, but the script only pushed when PUSH_IMAGES was the string true.
Fix:build_push_supplemental.sh normalizes the value: true|1|yes|on pushes, false|0|no|off|empty doesn't, unset still means push (release behavior as in 0.3.4), and anything else fails before building. The scan still runs and gates before any push. Only the PR docker_scan job sets push: false.
Tests (tests/test_docker_scan.sh, 12/12 locally):
release mode with PUSH_IMAGES 1, true or TRUE pushes every supplemental image (version and environment tags);
PR mode with 0, false or empty pushes nothing;
an invalid value fails without building;
the existing HIGH/CRITICAL gate tests still pass.
Then: release 0.3.6, and a Website-Backend orb bump 0.3.4 → 0.3.6.
**Regression in 0.3.5:** supplemental images (db-backup, migrations, geoip, ...) are built and scanned on release builds but **never pushed**. kof22 0.1.75 went into ImagePullBackOff; its docker job log ends with `All supplemental images built and scanned (push=1)`.
**Root cause:** #32 added a boolean `push` parameter (default `true`) passed as `PUSH_IMAGES: << parameters.push >>`. CircleCI renders it as `1`/`0` in the step environment, but the script only pushed when `PUSH_IMAGES` was the string `true`.
**Fix:** `build_push_supplemental.sh` normalizes the value: `true|1|yes|on` pushes, `false|0|no|off|empty` doesn't, unset still means push (release behavior as in 0.3.4), and anything else fails before building. The scan still runs and gates before any push. Only the PR `docker_scan` job sets `push: false`.
**Tests** (`tests/test_docker_scan.sh`, 12/12 locally):
- release mode with `PUSH_IMAGES` 1, true or TRUE pushes every supplemental image (version and environment tags);
- PR mode with 0, false or empty pushes nothing;
- an invalid value fails without building;
- the existing HIGH/CRITICAL gate tests still pass.
Then: release 0.3.6, and a Website-Backend orb bump 0.3.4 → 0.3.6.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Regression in 0.3.5: supplemental images (db-backup, migrations, geoip, ...) are built and scanned on release builds but never pushed. kof22 0.1.75 went into ImagePullBackOff; its docker job log ends with
All supplemental images built and scanned (push=1).Root cause: #32 added a boolean
pushparameter (defaulttrue) passed asPUSH_IMAGES: << parameters.push >>. CircleCI renders it as1/0in the step environment, but the script only pushed whenPUSH_IMAGESwas the stringtrue.Fix:
build_push_supplemental.shnormalizes the value:true|1|yes|onpushes,false|0|no|off|emptydoesn't, unset still means push (release behavior as in 0.3.4), and anything else fails before building. The scan still runs and gates before any push. Only the PRdocker_scanjob setspush: false.Tests (
tests/test_docker_scan.sh, 12/12 locally):PUSH_IMAGES1, true or TRUE pushes every supplemental image (version and environment tags);Then: release 0.3.6, and a Website-Backend orb bump 0.3.4 → 0.3.6.
🤖 Generated with Claude Code