From 8b065e4cb9811bea5c48cd192019e95ecf086802 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sun, 25 Jun 2023 23:22:10 +0200 Subject: [PATCH 1/2] Switch to Gitea Actions --- .drone.yml | 19 ------------------- .gitea/workflows/moisson.yml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 19 deletions(-) delete mode 100644 .drone.yml create mode 100644 .gitea/workflows/moisson.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 6d3747c..0000000 --- a/.drone.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/moisson.yml b/.gitea/workflows/moisson.yml new file mode 100644 index 0000000..5aa3bcb --- /dev/null +++ b/.gitea/workflows/moisson.yml @@ -0,0 +1,15 @@ +name: moisson +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 -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 }} -- 2.45.2 From 9f22604889dce3be8acb8d171b2420691993ab9d Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sun, 25 Jun 2023 23:25:19 +0200 Subject: [PATCH 2/2] Run only on master branch --- .gitea/workflows/moisson.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/moisson.yml b/.gitea/workflows/moisson.yml index 5aa3bcb..d17b167 100644 --- a/.gitea/workflows/moisson.yml +++ b/.gitea/workflows/moisson.yml @@ -1,5 +1,8 @@ name: moisson -on: [push] +on: + push: + branches: + - master jobs: deploy: -- 2.45.2