Skip to content

chore(ci): build images with docker/build-push-action#564

Open
einarwar wants to merge 1 commit into
chore/ci-align-test-jobs-with-misefrom
chore/ci-docker-build-push-action
Open

chore(ci): build images with docker/build-push-action#564
einarwar wants to merge 1 commit into
chore/ci-align-test-jobs-with-misefrom
chore/ci-docker-build-push-action

Conversation

@einarwar
Copy link
Copy Markdown
Contributor

Replace raw docker pull + docker build + (where applicable) tag/push loops with the canonical docker/setup-buildx-action + docker/build-push-action pair. Follow-up to #563.

publish-image.yaml

  • nginx and api build jobs now use build-push-action with:
    • multi-tag tags list computed from the comma-separated image-tags input,
    • cache-from: type=registry,ref=<image>:latest,
    • cache-to: type=inline so subsequent builds keep getting registry cache hits without an explicit pre-pull step.
  • target, context, build-args are now declarative.
  • The hand-rolled "tag in a loop, then push" Publish steps are gone — build-push-action pushes all tags directly.

tests.yaml

  • api-integration-tests and (disabled) web-tests build steps use build-push-action with load: true, push: false, so the image is available to the daemon for the subsequent docker compose run step.

Notes

Replace raw `docker pull` + `docker build` + (where applicable) tag/push loops with the canonical `docker/setup-buildx-action` + `docker/build-push-action` pair.

publish-image.yaml:

- nginx and api build jobs now use build-push-action with multi-tag `tags` lists computed from the comma-separated `image-tags` input, `cache-from: type=registry,ref=<image>:latest`, and `cache-to: type=inline` so subsequent builds keep getting registry cache hits without an explicit `docker pull` step.

- Build args / target / context are now declarative.

tests.yaml:

- api-integration-tests and (disabled) web-tests build steps now use build-push-action with `load: true, push: false` so the image is available locally for the subsequent `docker compose run` step.

No behavior change to the published tags (same list, same registry). The `docker compose` test invocations are unchanged.

Stacked on top of #563.
@einarwar einarwar requested a review from a team as a code owner May 19, 2026 14:54
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