30 lines
609 B
YAML
30 lines
609 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 docker-compose.prod.yml up -d
|
|
docker image prune -f
|