Compare commits

...

6 Commits

4 changed files with 16 additions and 75 deletions

View File

@ -1,55 +0,0 @@
---
kind: pipeline
name: deploy to swarm-test.autonomic.zone
steps:
- name: deployment
image: decentral1se/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: {{ .Name }}
purge: true
deploy_key:
from_secret: drone_ssh_swarm_test
environment:
DOMAIN: {{ .Name }}.swarm-test.autonomic.zone
LETS_ENCRYPT_ENV: production
- name: notify coopcloud-dev on failure
image: plugins/matrix
settings:
homeserver: https://matrix.autonomic.zone
roomid: "IFazIpLtxiScqbHqoa:autonomic.zone"
userid: "@autono-bot:autonomic.zone"
accesstoken:
from_secret: autono_bot_access_token
depends_on:
- deployment
when:
status:
- failure
trigger:
branch:
- main
---
kind: pipeline
name: recipe release
steps:
- name: release a new version
image: decentral1se/drone-abra:latest
settings:
command: recipe {{ .Name }} release
deploy_key:
from_secret: abra_bot_deploy_key
- name: trigger downstream builds
image: plugins/downstream
settings:
server: https://drone.autonomic.zone
token:
from_secret: decentral1se_token
fork: true
repositories:
- coop-cloud/auto-apps-json
depends_on:
- release a new version

View File

@ -4,4 +4,5 @@ DOMAIN={{ .Name }}.example.com
## Domain aliases
#EXTRA_DOMAINS=', `www.{{ .Name }}.example.com`'
LETS_ENCRYPT_ENV=production

View File

@ -4,27 +4,21 @@
<!-- metadata -->
* **Category**:
* **Status**:
* **Image**:
* **Healthcheck**:
* **Backups**:
* **Email**:
* **Tests**:
* **SSO**:
* **Category**: {{ .Category }}
* **Status**: {{ .Status }}
* **Image**: {{ .Image }}
* **Healthcheck**: {{ .Healthcheck }}
* **Backups**: {{ .Backups }}
* **Email**: {{ .Email }}
* **Tests**: {{ .Tests }}
* **SSO**: {{ .SSO }}
<!-- endmetadata -->
## Basic usage
## Quick start
1. Set up Docker Swarm and [`abra`]
2. Deploy [`coop-cloud/traefik`]
3. `abra app new ${REPO_NAME} --secrets` (optionally with `--pass` if you'd like
to save secrets in `pass`)
4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to
your Docker swarm box
5. `abra app YOURAPPDOMAIN deploy`
6. Open the configured domain in your browser to finish set-up
> For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech)
[`abra`]: https://git.coopcloud.tech/coop-cloud/abra
[`coop-cloud/traefik`]: https://git.coopcloud.tech/coop-cloud/traefik
1. `abra app new {{ .Name }} --secrets`
1. `abra app config <app-name>`
1. `abra app deploy <app-name>`

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: nginx:1.19.2
image: nginx:1.20.0
networks:
- proxy
deploy:
@ -19,6 +19,7 @@ services:
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version="
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s