This commit is contained in:
parent
7376c00e28
commit
f5298ebeb3
1 changed files with 67 additions and 13 deletions
80
.drone.yml
80
.drone.yml
|
@ -1,6 +1,6 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
name: build and test
|
||||
|
||||
steps:
|
||||
- name: build_test
|
||||
|
@ -20,21 +20,10 @@ steps:
|
|||
RAILS_LOG_TO_STDOUT: true
|
||||
RAILS_ENV: test
|
||||
COVERAGE: lcov
|
||||
DATABASE_URL: mysql2://user:password@mariadb/test?encoding=utf8mb4
|
||||
DATABASE_URL: mysql2://user:password@mariadb/test?encoding=utf8mb4
|
||||
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: true
|
||||
PARALLEL_TEST_PROCESSORS: 15
|
||||
|
||||
- name: build and publish docker image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
auto_tag: true
|
||||
username: yksflip
|
||||
from_secret: docker_registry
|
||||
repo: yksflip/foodsoft
|
||||
tags: latest
|
||||
depends_on:
|
||||
- build_test
|
||||
|
||||
services:
|
||||
- name: mariadb
|
||||
image: mariadb
|
||||
|
@ -50,3 +39,68 @@ volumes:
|
|||
path: /tmp/cache
|
||||
- name: tmp
|
||||
temp: {}
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: docker build and deploy
|
||||
steps:
|
||||
- name: build and publish docker image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
auto_tag: true
|
||||
username: yksflip
|
||||
from_secret: docker_registry
|
||||
repo: yksflip/foodsoft
|
||||
tags: latest
|
||||
- name: deployment
|
||||
image: decentral1se/stack-ssh-deploy:latest
|
||||
settings:
|
||||
stack: "foodsoft"
|
||||
compose: "deployment/compose.yml"
|
||||
deploy_key:
|
||||
from_secret: drone_deploy_key
|
||||
host: "dev.local-it.cloud"
|
||||
user: "root"
|
||||
port: 22
|
||||
environment:
|
||||
STACK_NAME: foodsoft
|
||||
DOMAIN: "$DRONE_COMMIT_SHA.foodsoft.dev.local-it.cloud"
|
||||
LETS_ENCRYPT_ENV: production
|
||||
FOODCOOP_MULTI_INSTALL: true
|
||||
FOODCOOP_NAME: example
|
||||
FOODCOOP_CITY: XXX
|
||||
FOODCOOP_COUNTRY: XXX
|
||||
FOODCOOP_EMAIL: info@example.org
|
||||
FOODCOOP_PHONE: XXX
|
||||
FOODCOOP_STREET: XXX
|
||||
FOODCOOP_ZIP_CODE: XXX
|
||||
FOODCOOP_HOMEPAGE: https://order.example.org
|
||||
FOODCOOP_HELP_URL: https://order.example.org
|
||||
FOODCOOP_TIME_ZONE: Berlin
|
||||
FOODCOOP_USE_NICK: true
|
||||
FOODCOOP_LANGUAGE: de
|
||||
FOODCOOP_FOOTER: '<a href="https://example.org/">example</a> hosted by <a href="https://yourhoster.org">Your Tech Co-op</a>.'
|
||||
USE_APPLE_POINTS: false
|
||||
STOP_ORDERING_UNDER: 75
|
||||
MINIMUM_BALANCE: 0
|
||||
MYSQL_DB: foodsoft
|
||||
MYSQL_HOST: db
|
||||
MYSQL_PORT: 3306
|
||||
MYSQL_USER: foodsoft
|
||||
EMAIL_SENDER: noreply@example.org
|
||||
EMAIL_ERROR: systems@example.org
|
||||
SMTP_ADDRESS: mail.example.com
|
||||
SMTP_AUTHENTICATION: plain
|
||||
SMTP_DOMAIN: mail.example.com
|
||||
SMTP_ENABLE_STARTTLS_AUTO: true
|
||||
SMTP_PORT: 587
|
||||
SMTP_USER_NAME: foodsoft
|
||||
EMAIL_REPLY_DOMAIN: example.org
|
||||
SMTP_SERVER_HOST: 0.0.0.0
|
||||
SMTP_SERVER_PORT: 2525
|
||||
SECRET_DB_PASSWORD_VERSION: v1
|
||||
SECRET_DB_ROOT_PASSWORD_VERSION: v1
|
||||
SECRET_SHARED_LISTS_DB_PASSWORD_VERSION: v1
|
||||
SECRET_SMTP_PASSWORD_VERSION: v1
|
||||
SECRET_SECRET_KEY_BASE_VERSION: v1
|
||||
generate_secrets: true
|
||||
|
|
Loading…
Reference in a new issue