56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
---
|
|
kind: pipeline
|
|
name: test and deploy to swarm-test.autonomic.zone
|
|
|
|
steps:
|
|
- name: test
|
|
image: alpine:3.21
|
|
environment:
|
|
SHELLCHECK_OPTS: -s bash
|
|
commands:
|
|
- apk add --no-cache bash shellcheck py3-pip py3-yaml curl
|
|
- pip3 install --break-system-packages yamllint 2>/dev/null || true
|
|
- curl -sSLo /usr/local/bin/gomplate https://github.com/hairyhenderson/gomplate/releases/latest/download/gomplate_linux-amd64
|
|
- chmod +x /usr/local/bin/gomplate
|
|
- tests/run.sh
|
|
|
|
- name: deployment
|
|
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
|
settings:
|
|
host: swarm-test.autonomic.zone
|
|
stack: wordpress
|
|
generate_secrets: true
|
|
purge: true
|
|
deploy_key:
|
|
from_secret: drone_ssh_swarm_test
|
|
networks:
|
|
- proxy
|
|
environment:
|
|
DOMAIN: wordpress.swarm-test.autonomic.zone
|
|
STACK_NAME: wordpress
|
|
LETS_ENCRYPT_ENV: production
|
|
SECRET_DB_PASSWORD_VERSION: v1
|
|
SECRET_DB_ROOT_PASSWORD_VERSION: v1
|
|
PHP_UPLOADS_CONF_VERSION: v1
|
|
ENTRYPOINT_CONF_VERSION: v1
|
|
HTACCESS_CONF_VERSION: v1
|
|
trigger:
|
|
branch:
|
|
- main
|
|
---
|
|
kind: pipeline
|
|
name: generate recipe catalogue
|
|
steps:
|
|
- name: release a new version
|
|
image: plugins/downstream
|
|
settings:
|
|
server: https://build.coopcloud.tech
|
|
token:
|
|
from_secret: drone_abra-bot_token
|
|
fork: true
|
|
repositories:
|
|
- toolshed/auto-recipes-catalogue-json
|
|
|
|
trigger:
|
|
event: tag
|