2021-12-13 17:33:55 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-12-20 16:56:39 +01:00
|
|
|
name: deploy docs to local-it.org
|
2021-12-13 17:33:55 +01:00
|
|
|
steps:
|
2021-12-20 16:56:39 +01:00
|
|
|
- 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
|
|
|
|
|
2021-12-13 17:33:55 +01:00
|
|
|
- name: deployment
|
|
|
|
image: decentral1se/stack-ssh-deploy:latest
|
|
|
|
settings:
|
|
|
|
stack: "lit-docs"
|
|
|
|
deploy_key:
|
|
|
|
from_secret: drone_deploy_key
|
2021-12-18 10:21:03 +01:00
|
|
|
host: "local-it.lit"
|
2021-12-13 17:33:55 +01:00
|
|
|
user: "root"
|
2021-12-20 16:42:15 +01:00
|
|
|
port: 22
|
2021-12-13 17:33:55 +01:00
|
|
|
environment:
|
|
|
|
DOMAIN: docs.local-it.org
|
2021-12-20 17:01:02 +01:00
|
|
|
- name: notify
|
|
|
|
image: plugins/matrix
|
|
|
|
settings:
|
|
|
|
homeserver: https://matrix.org
|
|
|
|
roomid: !DGQqJcgXkRwZcipMVI:matrix.local-it.org
|
|
|
|
username: lit-notify
|
|
|
|
password:
|
|
|
|
from_secret: matrix_password
|
|
|
|
|
2021-12-20 16:56:39 +01:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|