docs/.drone.yml

48 lines
998 B
YAML

---
kind: pipeline
name: deploy docs to local-it.org
clone:
depth: 50
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build and publish image
image: plugins/docker
settings:
auto_tag: true
username: yksflip
password:
from_secret: docker_registry
repo: yksflip/lit-docs
tags: latest
- name: deployment
image: decentral1se/stack-ssh-deploy:latest
settings:
stack: "lit-docs"
deploy_key:
from_secret: drone_deploy_key
host: "docs.local-it.org"
user: "root"
port: 22
environment:
STACK_NAME: lit_docs
DOMAIN: docs.local-it.org
# - name: notify
# image: plugins/matrix
# settings:
# homeserver: https://matrix.org
# roomid: DGQqJcgXkRwZcipMVI:matrix.local-it.org
# username: lit-notify
# password:
# from_secret: matrix_password
#
trigger:
branch:
- main