Compare commits

...

21 Commits
1.19.2 ... main

Author SHA1 Message Date
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
continuous-integration/drone/push Build encountered an error Details
2023-01-20 10:31:50 -08:00
decentral1se 67a5cc3807
fix: we don't have domain at creation time 2022-04-21 09:27:48 +02:00
decentral1se 8331364ad3
use domain env var 2022-03-27 21:09:46 +02:00
decentral1se b4dfa811a7
use <>, not parsed 2021-12-27 03:14:19 +01:00
decentral1se db491dcf42
fix: avoid parsing that too 2021-12-27 02:52:00 +01:00
decentral1se b73eeb871b
refactor: tweaking quick start 2021-12-27 02:40:59 +01:00
decentral1se f3c5cd3060
refactor: list, fullstop 2021-12-26 04:12:53 +01:00
decentral1se 513fb8c47f
fix: metadata parsing 2021-12-26 02:32:44 +01:00
decentral1se 914d2b8541
fix: add version placeholder 2021-12-25 14:53:30 +01:00
decentral1se e7fb025009
feat: upgrade nginx 2021-12-25 14:12:16 +01:00
decentral1se 21c0039697
refactor: new inputs, new quick start 2021-12-25 14:12:16 +01:00
decentral1se 852547121c
refactor: spacing 2021-12-25 14:12:15 +01:00
decentral1se 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
decentral1se dea4dfea5a
Support Golang templating 2021-07-25 19:28:58 +02:00
decentral1se 88d4dadca6 Add downstream trigger example 2021-06-05 09:20:14 +02:00
decentral1se 93273d0f07 Drop that trigger 2021-06-04 00:02:54 +02:00
decentral1se 2ce1e2aded Add notify config 2021-06-03 23:34:30 +02:00
decentral1se f7fd4b6f7e Fix that var 2021-06-03 23:11:36 +02:00
decentral1se 28667d2d04 Add release CI 2021-06-03 23:10:33 +02:00
6 changed files with 48 additions and 33 deletions

View File

@ -3,17 +3,36 @@ 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: ${REPO_NAME_SNAKE}
stack: {{ .Name }}
generate_secrets: true
purge: true
deploy_key:
from_secret: drone_ssh_swarm_test
networks:
- proxy
environment:
DOMAIN: ${REPO_NAME_KEBAB}.swarm-test.autonomic.zone
STACK_NAME: ${REPO_NAME_SNAKE}
DOMAIN: {{ .Name }}.swarm-test.autonomic.zone
STACK_NAME: {{ .Name }}
LETS_ENCRYPT_ENV: production
trigger:
branch:
- main
---
kind: pipeline
name: generate recipe catalogue
steps:
- name: release a new version
image: plugins/downstream
settings:
server: https://build.coopcloud.tech
token:
from_secret: drone_abra-bot_token
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -1,6 +1,8 @@
TYPE=${REPO_NAME_KEBAB}
TYPE={{ .Name }}
DOMAIN={{ .Name }}.example.com
DOMAIN=${REPO_NAME_KEBAB}.example.com
## Domain aliases
#EXTRA_DOMAINS=', `www.${REPO_NAME_KEBAB}.example.com`'
#EXTRA_DOMAINS=', `www.{{ .Name }}.example.com`'
LETS_ENCRYPT_ENV=production

View File

@ -1,3 +0,0 @@
README.md
.env.sample
.drone.yml

2
.gitignore vendored
View File

@ -1 +1 @@
/.envrc
.envrc

View File

@ -1,28 +1,24 @@
# ${REPO_NAME_TITLE}
# {{ .Name }}
${REPO_DESCRIPTION}
{{ .Description }}
<!-- metadata -->
* **Category**:
* **Status**:
* **Image**: [`${REPO_NAME}`](https://hub.docker.com/r/${REPO_NAME}/${REPO_NAME})
* **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.autonomic.zone/autonomic-cooperative/abra
[`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).

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