Improve UI aesthetics, generalize Docker config, and add GitHub Action for auto-build

This commit is contained in:
wander 2026-01-05 01:01:27 -05:00
parent 17153f8765
commit 180e0632e5
3 changed files with 152 additions and 66 deletions

45
.github/workflows/docker-build.yml vendored Normal file
View file

@ -0,0 +1,45 @@
name: Docker Build
on:
push:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- '.gitignore'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: type=raw,value=latest
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}