Skip to content

[228] Stop publishing container images that nothing consumes - #232

Merged
CarsonDavis merged 2 commits into
developmentfrom
feature/228-remove-docker-publish
Jul 29, 2026
Merged

[228] Stop publishing container images that nothing consumes#232
CarsonDavis merged 2 commits into
developmentfrom
feature/228-remove-docker-publish

Conversation

@CarsonDavis

Copy link
Copy Markdown
Collaborator

Closes #228

What

Deletes .github/workflows/docker-build.yml — the workflow that built the app container twice (arm64 + amd64, serialized, --no-cache) and published both to ghcr.io/nasa-impact/mmgis on every PR push, plus on pushes to master/development, tags, and releases. Also updates the now-stale header comment in deploy-lean.yml that claimed docker-build still published the GHCR image (comment-only change; no functional lines touched).

Which end state was chosen, and why

The issue left a choice: remove just the pull_request trigger, or delete the workflow entirely. Full deletion, because nothing consumes the fork's GHCR image on any trigger:

  • Repo-wide grep for ghcr.io/nasa-impact returns zero hits.
  • deploy-lean.yml builds its own image from the local Dockerfile and pushes to ECR on every push to development (.github/workflows/deploy-lean.yml triggers + build/push steps) — that is the recorded container-build gate: a broken Dockerfile fails the dev deploy within minutes of merging.
  • Both compose files build the mmgis service locally; their only GHCR references are third-party sidecars. sds/unity/terraform/terraform.tf pins the upstream ghcr.io/nasa-ammos/mmgis:development, which this fork's workflow never published.

Effect on PR turnaround

The only remaining pull_request workflow is Playwright Tests (unit + config freshness + e2e, ~8 min). Container work — previously 15–33 min of wall clock per PR push — is gone entirely.

⚠️ For #201 (required checks)

generate-tags / build-arm64 / build-amd64 stop reporting once this merges. They must never be listed as required status checks — a required check that never reports blocks every PR until an admin edits the ruleset. Verified today: the repo's only ruleset (require-pr) has no required-status-checks rule, so nothing needs changing now; this is a standing constraint for whoever configures #201.

Side effect for #58 (OpenSSF Dangerous-Workflow)

The deleted workflow contained the github.head_ref interpolation in its tag-generation run: block — the remaining Dangerous-Workflow finding after #225. Deleting it removes that injection surface, so #58 can likely be closed once Scorecard re-runs (verify there).

The two docker-build.yml mentions left in docs/adr/deployment/lean/prs/pr-11-aws-infra.md are a dated planning record and were deliberately left as-is.

Nothing consumes the images it publishes: deploy-lean.yml builds its
own image and pushes it to ECR on every push to development, the
compose files build the mmgis service from the local Dockerfile, and
no file in the repo references ghcr.io/nasa-impact. Deleting the
workflow ends the ~20 runner-minutes of duplicate arm64+amd64
--no-cache builds on every PR update and stops the registry from
accumulating per-PR tags. It also removes the Scorecard
Dangerous-Workflow finding from the tag-generation step (#58).

The container-build gate is now deploy-lean.yml, which exercises the
real Dockerfile on every merge to development; its header comment is
updated to record that.
@CarsonDavis CarsonDavis linked an issue Jul 29, 2026 that may be closed by this pull request
5 tasks
@CarsonDavis
CarsonDavis marked this pull request as ready for review July 29, 2026 16:39

@sandesh-sp sandesh-sp left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@CarsonDavis
CarsonDavis merged commit ba413a3 into development Jul 29, 2026
4 checks passed
@CarsonDavis
CarsonDavis deleted the feature/228-remove-docker-publish branch July 29, 2026 16:46
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.

Stop publishing container images that nothing consumes

2 participants