Some checks failed
Deploy to Server / deploy (push) Failing after 1m49s
- Add basePath /admin to Next.js config for path-based routing - Add .gitea/workflows/deploy.yml for CI/CD via Gitea Actions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
618 B
YAML
30 lines
618 B
YAML
name: Deploy to Server
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build API image
|
|
run: |
|
|
docker build -t rustycms-api:latest .
|
|
|
|
- name: Build Admin UI image
|
|
run: |
|
|
docker build \
|
|
--build-arg NEXT_PUBLIC_RUSTYCMS_API_URL=https://cms.pm86.de \
|
|
-t rustycms-admin:latest \
|
|
./admin-ui
|
|
|
|
- name: Deploy
|
|
run: |
|
|
docker compose -f /opt/rustycms/docker-compose.yml up -d
|
|
docker image prune -f
|