Skip to content

Commit 146d423

Browse files
committed
Autobuild?
1 parent 6ea1de4 commit 146d423

2 files changed

Lines changed: 94 additions & 0 deletions

File tree

.dockerignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Version control
2+
.git/
3+
.github/
4+
5+
# Local config / secrets
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Python artifacts
11+
__pycache__/
12+
*.pyc
13+
*.pyo
14+
*.pyd
15+
.venv/
16+
venv/
17+
18+
# Node (Tailwind CSS is pre-built and committed)
19+
node_modules/
20+
21+
# Tests
22+
tests/
23+
*.db
24+
25+
# Dev / docs
26+
.claude/
27+
README.md
28+
CLAUDE.md
29+
Logo.af
30+
31+
# Legacy hardware connectors and migration scripts (not needed in production image)
32+
projects/
33+
scripts/
34+
35+
# Docker / compose files (no need to copy into the image)
36+
docker-compose*.yml
37+
Dockerfile
38+
39+
# Tailwind source (output is already committed)
40+
package.json
41+
package-lock.json
42+
tailwind.config.js
43+
44+
# Local runtime mounts (logo, fonts, data)
45+
logo.svg
46+
fonts/
47+
data/

.github/workflows/docker.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Docker
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
packages: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Log in to GHCR
23+
uses: docker/login-action@v3
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Extract metadata
30+
id: meta
31+
uses: docker/metadata-action@v5
32+
with:
33+
images: ghcr.io/${{ github.repository }}
34+
tags: |
35+
type=semver,pattern={{version}}
36+
type=semver,pattern={{major}}.{{minor}}
37+
type=raw,value=latest
38+
39+
- name: Build and push
40+
uses: docker/build-push-action@v6
41+
with:
42+
context: .
43+
push: true
44+
tags: ${{ steps.meta.outputs.tags }}
45+
labels: ${{ steps.meta.outputs.labels }}
46+
cache-from: type=gha
47+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)