Skip to content

Add Dockerfile and GHCR publish workflow triggered on version tags - #44

Merged
foxkdev merged 4 commits into
mainfrom
copilot/prepare-dockerfile-github-actions
Aug 27, 2026
Merged

Add Dockerfile and GHCR publish workflow triggered on version tags#44
foxkdev merged 4 commits into
mainfrom
copilot/prepare-dockerfile-github-actions

Conversation

Copilot AI commented Aug 27, 2026

Copy link
Copy Markdown

Adds container support so the app can be built and deployed via Docker, and automates image publishing to GitHub Container Registry on every versioned release.

Changes

Dockerfile

  • Multi-stage build: builder (oven/bun:1) installs deps + runs vite build, prunes to prod-only deps; runner (node:22-alpine) copies artifacts and starts with node build
  • Declares /app/data as a VOLUME for SQLite DB and gitdb clone persistence
  • Exposes port 3000

.dockerignore

  • Excludes node_modules, build, .svelte-kit, data, .env*, .husky from the build context

.github/workflows/docker-publish.yml

  • Triggers on v*.*.* tag pushes
  • Authenticates to ghcr.io using the built-in GITHUB_TOKEN (no extra secrets)
  • Uses docker/metadata-action to generate semver tags (1.2.3, 1.2, 1)
  • BuildX + GHA layer caching for fast incremental rebuilds

Adapter switch: adapter-autoadapter-node

  • adapter-node produces a standard Node.js server entry point (node build) required for container deployments
  • Added @sveltejs/adapter-node to package.json dev dependencies

Co-authored-by: foxkdev <22413328+foxkdev@users.noreply.github.com>
Copilot AI changed the title [WIP] Prepare Dockerfile and GitHub actions for publishing image Add Dockerfile and GHCR publish workflow triggered on version tags Aug 27, 2026
Copilot AI requested a review from foxkdev August 27, 2026 15:43
@foxkdev
foxkdev marked this pull request as ready for review August 27, 2026 19:36
@foxkdev
foxkdev merged commit 12fbe6f into main Aug 27, 2026
2 checks passed
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.

Prepare Dockerfile + Github actions para publicar imagen en github artifacts

2 participants