Add Dockerfile, docker-compose.yml and Gitea Actions workflow for CI/CD

This commit is contained in:
DanielS
2026-06-30 23:19:39 +02:00
parent 79745eb127
commit 54fefadda9
3 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
name: CI/CD Deployment
on:
push:
branches:
- master
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEBIAN_HOST }}
username: ${{ secrets.DEBIAN_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
script: |
cd /opt/websitedummy
git pull origin master || git pull origin main
docker compose up -d --build