Added basic tests
This commit is contained in:
+39
-27
@@ -1,30 +1,42 @@
|
||||
# ---
|
||||
# kind: pipeline
|
||||
# name: deploy to swarm-test.autonomic.zone
|
||||
# steps:
|
||||
# - 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: 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
|
||||
|
||||
Reference in New Issue
Block a user