opticdev / optic

OpenAPI linting, diffing and testing. Optic helps prevent breaking changes, publish accurate documentation and improve the design of your APIs.
https://useoptic.com
MIT License
1.36k stars 83 forks source link

chore: build multi-arch images locally too #2752

Closed notnmeyer closed 8 months ago

notnmeyer commented 8 months ago

🍗 Description

What does this PR do? Anything folks should know?

updates the docker:build:local task to build multiarch images similarly to how docker:build:release does. we weren't doing this before, because i didnt understand how to get the images "available" without pushing to a registry. i mean, i still dont, but now we'll also just run a local (stateless) registry to push the image manifests there.

images (and the manifest) built with docker:build:local will be pushed to localhost:5000/useoptic/optic:local.

this makes it easier to inspect changes to the image with confidence that you're seeing something closer to what the release process would build. 👍

📚 References

Links to relevant docs (Notion, Twist, GH issues, etc.), if applicable.

👹 QA

How can other humans verify that this PR is correct?