Files
pihkaal-me/.gitea/workflows/build.yml
Pihkaal 14aa423b0e
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m2s
fix(docker): repair build
2026-02-13 14:26:19 +01:00

41 lines
1.1 KiB
YAML

name: Build and Push Docker Image
on:
push:
branches:
- beta
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.pihkaal.me
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Test runtime
run: |
docker build --target build -t debug-build .
docker run --rm -d -p 3000:3000 --name test-app debug-build sh -c "cd /app && npx nuxt dev --host 0.0.0.0"
sleep 15
curl -s http://localhost:3000 || true
curl -s http://localhost:3000/gallery || true
docker logs test-app
docker stop test-app
- name: Build and push Docker image
run: |
docker build -t git.pihkaal.me/pihkaal/pihkaal-me:latest .
docker push git.pihkaal.me/pihkaal/pihkaal-me:latest