Compare commits

..

21 Commits
main ... main

Author SHA1 Message Date
04a2f062be Merge pull request 'Fix some errors and deprecations, add abra.sh' (#3) from mac-chaffee/example:main into main
Reviewed-on: coop-cloud/example#3
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
2025-05-28 02:23:46 +00:00
dd6a48608a Fix deprecated traefik labels, add more instructions 2025-05-26 14:06:53 -04:00
874a5e1aa5 Fix auto-recipes-catalogue-json which moved to toolshed 2025-05-26 14:06:28 -04:00
d6523d8341 Add default abra.sh 2025-05-26 14:05:57 -04:00
ec1addc265
fix: use comments for .drone since not templated
I'm not sure updating `abra` to template these files is the best idea as
I'm actually hoping we'll be migrating away from this in the future. For
now, I use comments instead of leaving the ugly `{{ ... }}` in the file.
2025-01-03 17:56:54 +01:00
f2ca310307
fix: include release dir
See coop-cloud/example#2
2025-01-03 17:15:54 +01:00
3wc
b74f66d9ed Switch to self-hosted stack-ssh-deploy image [mass update] 2023-01-21 11:49:55 -08:00
3wc
339bb55ee1 Add example .drone.yml 2023-01-20 10:31:50 -08:00
67a5cc3807
fix: we don't have domain at creation time 2022-04-21 09:27:48 +02:00
8331364ad3
use domain env var 2022-03-27 21:09:46 +02:00
b4dfa811a7
use <>, not parsed 2021-12-27 03:14:19 +01:00
db491dcf42
fix: avoid parsing that too 2021-12-27 02:52:00 +01:00
b73eeb871b
refactor: tweaking quick start 2021-12-27 02:40:59 +01:00
f3c5cd3060
refactor: list, fullstop 2021-12-26 04:12:53 +01:00
513fb8c47f
fix: metadata parsing 2021-12-26 02:32:44 +01:00
914d2b8541
fix: add version placeholder 2021-12-25 14:53:30 +01:00
e7fb025009
feat: upgrade nginx 2021-12-25 14:12:16 +01:00
21c0039697
refactor: new inputs, new quick start 2021-12-25 14:12:16 +01:00
852547121c
refactor: spacing 2021-12-25 14:12:15 +01:00
d52d667721
chore: drop old drone config 2021-12-25 14:12:10 +01:00
3wc
70311576d1 chore: fix README bullet formatting
[ci skip]
2021-11-22 13:42:03 +02:00
6 changed files with 41 additions and 56 deletions

View File

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

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
* `abra app new {{ .Name }} --secrets`
* `abra app config <app-name>`
* `abra app deploy <app-name>`
[`abra`]: https://git.coopcloud.tech/coop-cloud/abra
[`coop-cloud/traefik`]: https://git.coopcloud.tech/coop-cloud/traefik
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).

2
abra.sh Executable file
View File

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

View File

@ -1,9 +1,7 @@
---
version: "3.8"
services:
app:
image: nginx:1.19.2
image: nginx:1.27.5
networks:
- proxy
deploy:
@ -17,8 +15,14 @@ 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"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
## 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"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s

0
release/.git-keep-me Normal file
View File