Skip to content

feat: add Docker build and Kubernetes deploy workflow #65

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

Merged
merged 2 commits into from
Apr 30, 2025

Conversation

dervoeti
Copy link
Member

@dervoeti dervoeti commented Apr 29, 2025

  • Added a multi-stage Dockerfile
  • Added a GitHub Action to build the Docker image, push / sign it, and deploy it to our Kubernetes cluster
  • Replaced @sveltejs/adapter-auto with @sveltejs/adapter-node to configure the application for the Node.js environment

I built the Dockerfile locally, deployed it to Kubernetes and tested it, works fine. It seems like I can't test the GH Action without merging it into main though.

How the action works:
The built image is tagged with the commit hash and then the image of the Deployment is updated to that tag, which causes it to restart.

Copy link

netlify bot commented Apr 29, 2025

Deploy Preview for stackablefeaturetracker ready!

Name Link
🔨 Latest commit a21759d
🔍 Latest deploy log https://app.netlify.com/sites/stackablefeaturetracker/deploys/6810cf9b2ab3eb00081dcfde
😎 Deploy Preview https://deploy-preview-65--stackablefeaturetracker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dervoeti dervoeti force-pushed the feat/build-docker-image branch from ca17484 to d2b1763 Compare April 29, 2025 11:49
@dervoeti dervoeti force-pushed the feat/build-docker-image branch from d2b1763 to 827de9d Compare April 29, 2025 11:57
@dervoeti dervoeti requested a review from lfrancke April 29, 2025 12:06
@lfrancke
Copy link
Member

This breaks the Netlify preview. I think we need to keep the auto adapter.

@dervoeti dervoeti force-pushed the feat/build-docker-image branch from 66344d6 to a21759d Compare April 29, 2025 13:09
@dervoeti
Copy link
Member Author

This breaks the Netlify preview. I think we need to keep the auto adapter.

Fixed, it is compatible with both Node and Netlify now.

@lfrancke lfrancke closed this Apr 29, 2025
@lfrancke lfrancke deleted the feat/build-docker-image branch April 29, 2025 18:53
@lfrancke lfrancke restored the feat/build-docker-image branch April 29, 2025 19:54
@lfrancke lfrancke reopened this Apr 29, 2025
@dervoeti dervoeti added this pull request to the merge queue Apr 30, 2025
Merged via the queue into main with commit c48e754 Apr 30, 2025
5 checks passed
@dervoeti dervoeti deleted the feat/build-docker-image branch April 30, 2025 12:53
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