-
Notifications
You must be signed in to change notification settings - Fork 12
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
CI: Add cloudrun deploy script #74
Conversation
Dockerfile.dbbrowser
Outdated
COPY pkg ./pkg | ||
RUN CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o /dbbrowser | ||
|
||
FROM alpine:3 |
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.
this could probably be from Scratch instead of alpine, no ?
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 have to do RUN apk add --no-cache ca-certificates
, I don't think scratch supports that, I'll double check though
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.
Yeah, it fails without alpine, and if you don't run that command you get an error when the apps starting
tls: failed to verify certificate: x509: certificate signed by unknown authority cloudrun
@@ -0,0 +1,14 @@ | |||
FROM golang:1.21 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.
lets add this to gha action to push this image too
simmilar to the binary image
https://hub.docker.com/repository/docker/medyagh/gopogh/general
https://github.com/medyagh/gopogh/blob/master/.github/workflows/image_build.yml
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.
changes could be done in follow up PR too
No description provided.