Sistemati workflow?

This commit is contained in:
Emiliano Vavassori 2024-03-02 18:41:05 +01:00
parent 8a68fb931e
commit 01d7c160ed
2 changed files with 25 additions and 12 deletions

View File

@ -0,0 +1,8 @@
---
name: show settings
on: [push]
jobs:
show_settings:
runs-on: site-builder
steps:
- run: echo ${{ gitea.workspace }}

View File

@ -1,8 +1,8 @@
--- ---
name: Build and Deploy name: build and deploy
on: [push] on: [push]
jobs: jobs:
Build: build:
runs-on: site-builder runs-on: site-builder
steps: steps:
- run: git clone ${{ gitea.repository }} - run: git clone ${{ gitea.repository }}
@ -12,13 +12,18 @@ jobs:
Deploy: Deploy:
runs-on: debian-bookworm runs-on: debian-bookworm
steps: steps:
- uses: easingthemes/ssh-deploy@main - uses: burnett01/rsync-deployments@6.0.0
env: with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} path: output/
SOURCE: output/ remote_host: ${{ secrets.REMOTE_HOST }}
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} remote_port: ${{ secrets.REMOTE_PORT }}
REMOTE_USER: ${{ secrets.REMOTE_USER }} remote_user: ${{ secrets.REMOTE_USER }}
REMOTE_PORT: ${{ secrets.REMOTE_PORT }} remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
TARGET: /var/www/conference remote_path: /var/www/conference
SCRIPT_AFTER: | - uses: appleboy/ssh-action@v1.0.3
sudo chown -R root:www-data /var/www/conference with:
host: ${{ secrets.REMOTE_HOST }}
port: ${{ secrets.REMOTE_PORT }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: sudo chown -R root:www-data /var/www/conference