Sistemati workflow?
This commit is contained in:
parent
8a68fb931e
commit
01d7c160ed
8
.gitea/workflows/base.yml
Normal file
8
.gitea/workflows/base.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: show settings
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
show_settings:
|
||||||
|
runs-on: site-builder
|
||||||
|
steps:
|
||||||
|
- run: echo ${{ gitea.workspace }}
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user