tramway/.drone.yml

33 lines
547 B
YAML
Raw Normal View History

2024-04-10 19:47:57 +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-05-16 21:43:17 +02:00
target: /var/www/tramweb.quarante-douze.net
2024-04-10 19:47:57 +02:00
source: _site/*
user:
from_secret: deploy_user
key:
from_secret: deploy_key
when:
branch: main
delete: true