ci: woodpecker -> forgejo actions
All checks were successful
/ build (push) Successful in 14s

This commit is contained in:
LordMZTE 2024-05-10 19:58:19 +02:00
parent 0f1a547441
commit 5acdc966a1
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 32 additions and 20 deletions

View file

@ -0,0 +1,32 @@
on:
push:
branches:
- master
jobs:
build:
runs-on: docker
container:
image: alpine
steps:
- name: Install Packages
run: |
apk add nodejs 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 }}

View file

@ -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"