Add actions to the portfolio

This commit is contained in:
zuma 2025-04-13 16:45:00 +02:00
parent f902cd0713
commit f982b478cf
3 changed files with 77 additions and 653 deletions

View file

@ -0,0 +1,25 @@
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 }}