Shenanigans-Portfolio/.forgejo/workflows/website_publish.yml
2025-04-13 16:45:00 +02:00

25 lines
668 B
YAML

name: Docker Build
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-22.04
env:
DOCKER_HOST: tcp://localhost:2375
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0 # all history for all branches and tags
- name: Deploy
run: |
eval $(ssh-agent -s)
echo "${{ secrets.DEPLOY_KEY }}" | ssh-add -
apt update && apt install -y rsync
rsync -atv --progress -e 'ssh -o StrictHostKeyChecking=no -p ${{ secrets.DEPLOY_PORT }}' ./website/ ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_PATH }}