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

Use a pre-built go executable for deployments #196

Closed
DarVoid opened this issue Feb 27, 2025 · 2 comments
Closed

Use a pre-built go executable for deployments #196

DarVoid opened this issue Feb 27, 2025 · 2 comments

Comments

@DarVoid
Copy link

DarVoid commented Feb 27, 2025

Currently, the deploy action pulls a Golang base image and runs the Dockerfile to compile the executable. This means every time we use the action, we're unnecessarily rebuilding the executable.

Instead, we could optimize this by pulling a minimal image with just the prebuilt Go executable. This would reduce build time, minimize dependencies, and improve efficiency without changing functionality.

Would you consider updating the workflow to use a prebuilt binary instead? Happy to discuss possible solutions!

@DarVoid DarVoid changed the title Please use a built go executable for deployments Use a built go executable for deployments Feb 27, 2025
@DarVoid DarVoid changed the title Use a built go executable for deployments Use a pre-built go executable for deployments Feb 27, 2025
@DarVoid
Copy link
Author

DarVoid commented Feb 27, 2025

This as the base image https://hub.docker.com/_/scratch

@markusthoemmes
Copy link
Contributor

Duplicate of #192. Let's keep the discussion in there.

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

No branches or pull requests

2 participants