Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and publish container images #67

Open
Doctor-love opened this issue Jan 10, 2022 · 2 comments
Open

Build and publish container images #67

Doctor-love opened this issue Jan 10, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Doctor-love
Copy link
Collaborator

I'm running fq in a container by building it based on the Dockerfile locally.
It would be neat to automatically publish container images for releases and something I'm tempted to work on.
This however raises a few questions I would like feedback on:

To where should the container images be published? Simplest way is probably Github packages, as secrets management and similar is automagically handled.

Where in the CI pipeline should images be built? GoReleaser has support to build and publish images, but it could be done using other Github actions as well.

Which architectures should the images be built for? Considering that the "runtime" image is based on scratch, it should only be a matter of support for cross-compiling the Go binaries.

@Doctor-love Doctor-love added the enhancement New feature or request label Jan 10, 2022
@wader
Copy link
Owner

wader commented Jan 10, 2022

Sounds good! maybe start with just github packages registry for now?

About building i'm not sure, i would be nice to do via goreleaser but don't understand if it support multiple arch images or, it seems like not goreleaser/goreleaser#530. For what archs maybe the same archs that alpine build fq for? i wonder also if you could use the go cross building-abilities somehow?

Maybe do some github actions experiments in a forked repo?

@Doctor-love
Copy link
Collaborator Author

Yup, that's my plan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants