bug fixes and first try of github docker

This commit is contained in:
Stefan
2025-11-23 16:43:47 +01:00
parent 74016f08c6
commit 0aa4370f64
12 changed files with 695 additions and 350 deletions
+38
View File
@@ -0,0 +1,38 @@
name: Build and publish Docker image to GHCR
on:
push:
branches: [ "main" ]
tags:
- "v*"
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/chess-tutor:latest
ghcr.io/${{ github.repository_owner }}/chess-tutor:${{ github.sha }}
# Ensure API key is not baked into the image
build-args: |
NEXT_PUBLIC_GEMINI_API_KEY=