From 68c43b7c06b03ad0a958d50e7f0f7c5ddb67a710 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sun, 25 Jun 2023 23:16:50 +0200 Subject: [PATCH] Switch to Gitea Actions --- .drone.yml | 16 ---------------- .gitea/workflows/cila.yml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 16 deletions(-) delete mode 100644 .drone.yml create mode 100644 .gitea/workflows/cila.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 3da308f..0000000 --- a/.drone.yml +++ /dev/null @@ -1,16 +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 -d -c "set cmd:fail-exit yes; set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST; cd cila.camelia-studio.org/v3; mirror -Rpnevvv --exclude logs/ --exclude .git/ --exclude cloud/ --exclude mails/" \ No newline at end of file diff --git a/.gitea/workflows/cila.yml b/.gitea/workflows/cila.yml new file mode 100644 index 0000000..0b64418 --- /dev/null +++ b/.gitea/workflows/cila.yml @@ -0,0 +1,15 @@ +name: cila +on: [push] + +jobs: + deploy: + runs-on: ubuntu-latest + container: finalgene/lftp + steps: + - run: apk add --no-cache git nodejs + - uses: actions/checkout@v3 + - run: lftp -d -c "set cmd:fail-exit yes; set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST; cd cila.camelia-studio.org/v3; mirror -Rpnevvv --exclude logs/ --exclude .git/ --exclude cloud/ --exclude mails/" + env: + USERNAME: ${{ secrets.USERNAME }} + PASSWORD: ${{ secrets.PASSWORD }} + HOST: ${{ secrets.HOST }}