docs/.drone.yml

48 lines
998 B
YAML
Raw Normal View History

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
2022-07-23 23:53:19 +02:00
clone:
depth: 50
2021-12-13 17:33:55 +01:00
steps:
2022-07-23 23:53:19 +02:00
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
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
2022-03-07 10:13:04 +01:00
host: "docs.local-it.org"
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:
2021-12-20 17:29:22 +01:00
STACK_NAME: lit_docs
2021-12-13 17:33:55 +01:00
DOMAIN: docs.local-it.org
2022-07-23 23:53:19 +02:00
2022-07-23 23:47:05 +02: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