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

View File

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

View File

@ -4,21 +4,27 @@
<!-- metadata --> <!-- metadata -->
* **Category**: {{ .Category }} - **Category**:
* **Status**: {{ .Status }} - **Status**:
* **Image**: {{ .Image }} - **Image**:
* **Healthcheck**: {{ .Healthcheck }} - **Healthcheck**:
* **Backups**: {{ .Backups }} - **Backups**:
* **Email**: {{ .Email }} - **Email**:
* **Tests**: {{ .Tests }} - **Tests**:
* **SSO**: {{ .SSO }} - **SSO**:
<!-- endmetadata --> <!-- endmetadata -->
## Quick start ## Basic usage
* `abra app new {{ .Name }} --secrets` 1. Set up Docker Swarm and [`abra`]
* `abra app config <app-name>` 2. Deploy [`coop-cloud/traefik`]
* `abra app deploy <app-name>` 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: services:
app: app:
image: nginx:1.27.5 image: nginx:1.19.2
networks: networks:
- proxy - proxy
deploy: deploy:
@ -15,14 +17,8 @@ services:
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN ## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" #- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
## Redirect HTTP to HTTPS #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
# - "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.scheme=https" #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
# - "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"
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"] test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s interval: 30s

View File