init
Some checks failed
Build & Deploy Nuxt (Docker) / deploy (push) Failing after 6s

This commit is contained in:
Tom Trappmann
2025-12-22 21:30:18 +01:00
commit c0b06c1927
32 changed files with 17721 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
name: Build & Deploy Nuxt (Docker)
on:
push:
branches: ["main"]
jobs:
deploy:
runs-on: [self-hosted, linux, docker]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Define image tag
run: |
echo "IMAGE=local/nautilusDesk:${{ gitea.sha }}" >> $GITEA_ENV
- name: Build image
run: |
docker build -t "$IMAGE" .
- name: Deploy via compose
run: |
cd deploy
IMAGE="$IMAGE" docker compose up -d --remove-orphans
- name: Cleanup dangling images (optional)
run: |
docker image prune -f || true