kcl-digital-humanities-garden/.drone.yml

37 lines
1.0 KiB
YAML
Raw Normal View History

2024-07-10 07:56:42 +00:00
---
kind: pipeline
name: publish pipeline
steps:
2024-07-10 08:04:51 +00:00
- name: publish jekyll container
image: plugins/docker
2024-07-10 08:06:03 +00:00
settings: &docker-build-settings
username: 3wordchant
password:
from_secret: git_autonomic_zone_token_3wc
repo: git.autonomic.zone/autonomic-cooperative/kcl-site
auto_tag: true
registry: git.autonomic.zone
2024-07-10 08:04:51 +00:00
when:
branch:
- main
event:
exclude:
- custom
2024-07-10 07:56:42 +00:00
2024-07-10 08:04:51 +00:00
- name: deploy-site
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
settings:
2024-07-10 08:14:22 +00:00
host: smallclients.autonomic.zone
2024-07-10 08:04:51 +00:00
service: kcl_autonomic_zone_app
source: /srv/jekyll/dist/
dest: /usr/share/nginx/html/
exec_pre: rm -rf /usr/share/nginx/html/*
deploy_key:
from_secret: drone_ssh_swarm-demo.autonomic.zone
2024-07-10 08:14:22 +00:00
environment:
DOMAIN: kcl.smallclients.autonomic.zone
STACK_NAME: kcl_smallclients_autonomic_zone
NGINX_CONF_VERSION: v1
REPOSITORY: "autonomic-cooperative/kcl-site"
2024-07-10 08:04:51 +00:00
depends_on:
2024-07-10 08:06:31 +00:00
- publish jekyll container