Compare commits
27 Commits
Author | SHA1 | Date | |
---|---|---|---|
04a2f062be | |||
dd6a48608a | |||
874a5e1aa5 | |||
d6523d8341 | |||
ec1addc265
|
|||
f2ca310307
|
|||
b74f66d9ed | |||
339bb55ee1 | |||
67a5cc3807
|
|||
8331364ad3
|
|||
b4dfa811a7
|
|||
db491dcf42
|
|||
b73eeb871b
|
|||
f3c5cd3060
|
|||
513fb8c47f
|
|||
914d2b8541
|
|||
e7fb025009
|
|||
21c0039697
|
|||
852547121c
|
|||
d52d667721
|
|||
70311576d1 | |||
dea4dfea5a | |||
88d4dadca6 | |||
93273d0f07 | |||
2ce1e2aded | |||
f7fd4b6f7e | |||
28667d2d04 |
30
.drone.yml
30
.drone.yml
@ -3,17 +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: ${REPO_NAME_SNAKE}
|
||||
stack: example_com # UPDATE ME
|
||||
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}
|
||||
LETS_ENCRYPT_ENV: production
|
||||
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: 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:
|
||||
- toolshed/auto-recipes-catalogue-json
|
||||
|
||||
trigger:
|
||||
event: tag
|
||||
|
@ -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
|
||||
|
@ -1,3 +0,0 @@
|
||||
README.md
|
||||
.env.sample
|
||||
.drone.yml
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
/.envrc
|
||||
.envrc
|
||||
|
38
README.md
38
README.md
@ -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).
|
||||
|
2
abra.sh
Executable file
2
abra.sh
Executable file
@ -0,0 +1,2 @@
|
||||
# Set any config versions here
|
||||
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
|
14
compose.yml
14
compose.yml
@ -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
0
release/.git-keep-me
Normal file
Reference in New Issue
Block a user