kcl-digital-humanities-garden/.drone.yml
tobias 6d564675fa
Some checks failed
continuous-integration/drone/push Build is failing
GitHub Pages Deploy / deploy (push) Has been cancelled
JS Lint / lint (push) Has been cancelled
HTMLProofer / test (2.7) (push) Has been cancelled
HTMLProofer / test (3.0) (push) Has been cancelled
Remove service
2024-07-10 10:18:30 +02:00

37 lines
1.0 KiB
YAML

---
kind: pipeline
name: publish pipeline
steps:
- name: publish jekyll container
image: plugins/docker
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
when:
branch:
- main
event:
exclude:
- custom
- name: deploy-site
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
settings:
compose: docker-compose.prod.yml
host: smallclients.autonomic.zone
source: /srv/jekyll/dist/
dest: /usr/share/nginx/html/
exec_pre: rm -rf /usr/share/nginx/html/*
deploy_key:
from_secret: drone_ssh_smallclients.autonomic.zone
environment:
DOMAIN: kcl.smallclients.autonomic.zone
STACK_NAME: kcl_smallclients_autonomic_zone
NGINX_CONF_VERSION: v1
REPOSITORY: "autonomic-cooperative/kcl-site"
depends_on:
- publish jekyll container