Compare commits

..

No commits in common. "main" and "main" have entirely different histories.
main ... main

6 changed files with 56 additions and 41 deletions

View File

@ -3,37 +3,53 @@ kind: pipeline
name: deploy to swarm-test.autonomic.zone
steps:
- name: deployment
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
image: decentral1se/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: example_com # UPDATE ME
generate_secrets: true
stack: {{ .Name }}
purge: true
deploy_key:
from_secret: drone_ssh_swarm_test
networks:
- proxy
environment:
DOMAIN: example.swarm-test.autonomic.zone # UPDATE ME
STACK_NAME: example_com # UPDATE ME
LETS_ENCRYPT_ENV: staging
# Also set any config versions from abra.sh
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: generate recipe catalogue
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://build.coopcloud.tech
server: https://drone.autonomic.zone
token:
from_secret: drone_abra-bot_token
from_secret: decentral1se_token
fork: true
repositories:
- toolshed/auto-recipes-catalogue-json
trigger:
event: tag
- coop-cloud/auto-apps-json
depends_on:
- release a new version

View File

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

View File

@ -4,21 +4,27 @@
<!-- metadata -->
* **Category**: {{ .Category }}
* **Status**: {{ .Status }}
* **Image**: {{ .Image }}
* **Healthcheck**: {{ .Healthcheck }}
* **Backups**: {{ .Backups }}
* **Email**: {{ .Email }}
* **Tests**: {{ .Tests }}
* **SSO**: {{ .SSO }}
- **Category**:
- **Status**:
- **Image**:
- **Healthcheck**:
- **Backups**:
- **Email**:
- **Tests**:
- **SSO**:
<!-- endmetadata -->
## Quick start
## Basic usage
* `abra app new {{ .Name }} --secrets`
* `abra app config <app-name>`
* `abra app deploy <app-name>`
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

View File

@ -1,2 +0,0 @@
# Set any config versions here
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs

View File

@ -1,7 +1,9 @@
---
version: "3.8"
services:
app:
image: nginx:1.27.5
image: nginx:1.19.2
networks:
- proxy
deploy:
@ -15,14 +17,8 @@ services:
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
## Redirect HTTP to HTTPS
# - "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.scheme=https"
# - "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.permanent=true"
## When you're ready for release, run "abra recipe sync <name>" to set this
- "coop-cloud.${STACK_NAME}.version="
## Enable backups: https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-configure-backuprestore
# - "backupbot.backup=true"
# - "backupbot.backup.path=/some/path"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s

View File