Compare commits

..

3 Commits

Author SHA1 Message Date
6200b75ec8 Merge pull request 'Switch to Gitea Actions' (#15) from actions into master
All checks were successful
moisson / deploy (push) Successful in 13s
Reviewed-on: #15
2023-06-26 13:06:09 +00:00
9f22604889 Run only on master branch 2023-06-25 23:25:19 +02:00
8b065e4cb9 Switch to Gitea Actions 2023-06-25 23:22:10 +02:00
2 changed files with 18 additions and 19 deletions

View File

@ -1,19 +0,0 @@
kind: pipeline
type: docker
name: deploy
steps:
- name: deploy
image: mwienk/docker-lftp
environment:
USERNAME:
from_secret: ftp-esenjin-username
PASSWORD:
from_secret: ftp-esenjin-password
HOST:
from_secret: shelter-host
commands:
- lftp -c "set cmd:fail-exit yes; set ftp:ssl-allow no;set dns:order \"inet inet6\"; open -u $USERNAME,$PASSWORD $HOST; cd cila.camelia-studio.org/moisson-rouge; mirror -Rpnevvv --parallel=10 --exclude .git/"
when:
branch:
- master

View File

@ -0,0 +1,18 @@
name: moisson
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
container: finalgene/lftp
steps:
- run: apk add --no-cache git nodejs
- uses: actions/checkout@v3
- run: lftp -c "set cmd:fail-exit yes; set ftp:ssl-allow no;set dns:order \"inet inet6\"; open -u $USERNAME,$PASSWORD $HOST; cd cila.camelia-studio.org/moisson-rouge; mirror -Rpnevvv --parallel=10 --exclude .git/"
env:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
HOST: ${{ secrets.HOST }}