chore: migrate to woodpecker

This commit is contained in:
Timo Ley 2024-04-28 15:53:16 +02:00
parent 71682ab6b2
commit 79b3852a37
4 changed files with 26 additions and 46 deletions

View file

@ -1,25 +1,19 @@
kind: pipeline
type: docker
name: release
steps: steps:
- name: build - name: build
image: ghcr.io/peaceiris/docker-mdbook/mdbook:v0.4.4 image: alpine
entrypoint: [ /usr/bin/mdbook ] commands:
command: - apk add mdbook
- build - mdbook build
- name: publish - name: publish
image: appleboy/drone-scp image: rclone/rclone:latest
settings: secrets: [ web_pw ]
host: web.tilera.xyz commands:
username: webmaster - export RCLONE_SFTP_PASS="$(rclone obscure $WEB_PW)"
password: - rclone sync ./public/ :sftp:/home/webmaster/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
from_secret: web_pw environment:
port: 2220 RCLONE_SFTP_HOST: git.tilera.org
target: /home/webmaster/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME} RCLONE_SFTP_USER: webmaster
source: public/* RCLONE_SFTP_PORT: "2220"
rm: true
strip_components: 1
when: when:
branch: master branch: master
event: push event: push

View file

@ -1,7 +1,3 @@
kind: pipeline
type: docker
name: release
steps: steps:
- name: build - name: build
image: adoptopenjdk/openjdk8 image: adoptopenjdk/openjdk8

View file

@ -1,7 +1,3 @@
kind: pipeline
type: docker
name: release
steps: steps:
- name: build - name: build
image: adoptopenjdk/openjdk8 image: adoptopenjdk/openjdk8

View file

@ -1,25 +1,19 @@
kind: pipeline
type: docker
name: release
steps: steps:
- name: build - name: build
image: ghcr.io/getzola/zola:v0.15.3 image: alpine
entrypoint: [ /bin/zola ] commands:
command: - apk add zola
- build - zola build
- name: upload - name: upload
image: appleboy/drone-scp image: rclone/rclone:latest
settings: secrets: [ web_pw ]
host: git.tilera.org commands:
username: webmaster - export RCLONE_SFTP_PASS="$(rclone obscure $WEB_PW)"
password: - rclone sync ./public/ :sftp:/home/webmaster/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
from_secret: web_pw environment:
port: 2220 RCLONE_SFTP_HOST: git.tilera.org
target: /home/webmaster/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME} RCLONE_SFTP_USER: webmaster
source: public/* RCLONE_SFTP_PORT: "2220"
rm: true
strip_components: 1
when: when:
branch: master branch: master
event: push event: push