2023-05-24 22:54:51 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: production
|
|
|
|
when:
|
|
|
|
event: [ push ]
|
|
|
|
branch: [ main ]
|
|
|
|
|
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: plugins/git
|
|
|
|
pull: true
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: node:latest
|
|
|
|
commands:
|
|
|
|
- npm i
|
|
|
|
- npx @11ty/eleventy
|
|
|
|
|
|
|
|
- name: deploy
|
|
|
|
image: drillster/drone-rsync
|
|
|
|
settings:
|
|
|
|
hosts:
|
|
|
|
from_secret: deploy_host
|
2024-09-21 12:12:50 +02:00
|
|
|
target: /var/www/next.erratum.kazhnuz.space
|
2023-05-24 22:54:51 +02:00
|
|
|
source: _site/*
|
|
|
|
user:
|
|
|
|
from_secret: deploy_user
|
|
|
|
key:
|
|
|
|
from_secret: deploy_key
|
|
|
|
when:
|
2024-09-21 12:10:10 +02:00
|
|
|
branch: stable
|
2023-05-24 22:54:51 +02:00
|
|
|
delete: true
|