This commit is contained in:
parent
0f1a547441
commit
73994df74c
2 changed files with 32 additions and 20 deletions
32
.forgejo/workflows/deploy.yml
Normal file
32
.forgejo/workflows/deploy.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: alpine
|
||||
steps:
|
||||
- name: Install Packages
|
||||
run: |
|
||||
apk add node git zola rsync
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
zola build
|
||||
|
||||
- name: Rsync
|
||||
uses: https://github.com/burnett01/rsync-deployments@7.0.1
|
||||
with:
|
||||
switches: -avzr --delete
|
||||
path: public
|
||||
remote_path: /var/www/html
|
||||
remote_host: mzte.de
|
||||
remote_port: 22004
|
||||
remote_user: www-ci
|
||||
remote_key: ${{ secrets.DEPLOY_KEY }}
|
|
@ -1,20 +0,0 @@
|
|||
pipeline:
|
||||
build:
|
||||
image: alpine
|
||||
commands:
|
||||
- apk add zola
|
||||
- zola build
|
||||
|
||||
upload:
|
||||
image: drillster/drone-rsync
|
||||
settings:
|
||||
hosts: ["mzte.de"]
|
||||
port: 22004
|
||||
user: www-ci
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
source: ./public/
|
||||
target: /var/www/html
|
||||
delete: true
|
||||
args: "-v"
|
||||
|
Loading…
Reference in a new issue