-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add workflow for building Docker image on commit to main #4
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we just need to copy the binary: ingester
@@ -0,0 +1,24 @@ | |||
FROM golang:1.22-bookworm AS builder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should use 1.22-alpine
COPY . /app/ | ||
RUN make build | ||
|
||
FROM debian:bookworm-slim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and use alpine:3.20
here
of course we then need to use apk
instead of apt.. but maybe we just stick w/ debian
Regarding base Docker images and debian etc. I'm confused whether or not you're suggesting we change. I don't know enough about alpine/debian to know what would be best |
fe1a714
to
51a9ba0
Compare
Ran successfully in the PR, changing it to run on merge to main |
name: "Build Docker image and push to Dockerhub" | ||
name: "Lint and test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I messed up the name in #3
Postponing pushing to a public registry, need to decide on the offical name.