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

Add workflow for building Docker image on commit to main #4

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

vegarsti
Copy link
Member

@vegarsti vegarsti commented Jun 5, 2024

Postponing pushing to a public registry, need to decide on the offical name.

Copy link
Member Author

vegarsti commented Jun 5, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @vegarsti and the rest of your teammates on Graphite Graphite

Copy link
Contributor

@msf msf left a 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

Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@@ -0,0 +1,24 @@
FROM golang:1.22-bookworm AS builder
Copy link
Contributor

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
Copy link
Contributor

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

@vegarsti
Copy link
Member Author

vegarsti commented Jun 5, 2024

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

@vegarsti vegarsti force-pushed the cd-workflow branch 4 times, most recently from fe1a714 to 51a9ba0 Compare June 5, 2024 12:58
@vegarsti vegarsti changed the title Build and push Docker image on commit to main Add workflow for building Docker image on commit to main Jun 5, 2024
@vegarsti
Copy link
Member Author

vegarsti commented Jun 5, 2024

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"
Copy link
Member Author

@vegarsti vegarsti Jun 5, 2024

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

@vegarsti vegarsti requested a review from msf June 5, 2024 17:18
@vegarsti vegarsti merged commit b8897af into main Jun 6, 2024
1 check passed
@vegarsti vegarsti deleted the cd-workflow branch June 6, 2024 07:09
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.

2 participants