Some checks failed
Build and Deploy / deploy (push) Failing after -2m4s
- Dockerfile (multi-stage Next.js standalone build) - docker-compose.yml for Portainer stack - Gitea Actions workflow for CI/CD - Runner container config (Dockerfile.runner + compose) - next.config.ts: enable standalone output - Site content and image updates Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
528 B
YAML
25 lines
528 B
YAML
name: Build and Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build Docker image
|
|
run: |
|
|
SHA=$(echo "${{ gitea.sha }}" | cut -c1-7)
|
|
docker build -t micromelon-website:$SHA -t micromelon-website:latest .
|
|
|
|
- name: Restart container
|
|
run: docker compose -f /opt/micromelon/docker-compose.yml up -d
|
|
|
|
- name: Prune old images
|
|
run: docker image prune -f
|