Support Golang templating
This commit is contained in:
parent
88d4dadca6
commit
dea4dfea5a
|
@ -6,13 +6,12 @@ steps:
|
||||||
image: decentral1se/stack-ssh-deploy:latest
|
image: decentral1se/stack-ssh-deploy:latest
|
||||||
settings:
|
settings:
|
||||||
host: swarm-test.autonomic.zone
|
host: swarm-test.autonomic.zone
|
||||||
stack: ${REPO_NAME_SNAKE}
|
stack: {{ .Name }}
|
||||||
purge: true
|
purge: true
|
||||||
deploy_key:
|
deploy_key:
|
||||||
from_secret: drone_ssh_swarm_test
|
from_secret: drone_ssh_swarm_test
|
||||||
environment:
|
environment:
|
||||||
DOMAIN: ${REPO_NAME_KEBAB}.swarm-test.autonomic.zone
|
DOMAIN: {{ .Name }}.swarm-test.autonomic.zone
|
||||||
STACK_NAME: ${REPO_NAME_SNAKE}
|
|
||||||
LETS_ENCRYPT_ENV: production
|
LETS_ENCRYPT_ENV: production
|
||||||
|
|
||||||
- name: notify coopcloud-dev on failure
|
- name: notify coopcloud-dev on failure
|
||||||
|
@ -39,7 +38,7 @@ steps:
|
||||||
- name: release a new version
|
- name: release a new version
|
||||||
image: decentral1se/drone-abra:latest
|
image: decentral1se/drone-abra:latest
|
||||||
settings:
|
settings:
|
||||||
command: recipe ${REPO_NAME} release
|
command: recipe {{ .Name }} release
|
||||||
deploy_key:
|
deploy_key:
|
||||||
from_secret: abra_bot_deploy_key
|
from_secret: abra_bot_deploy_key
|
||||||
|
|
||||||
|
@ -53,4 +52,4 @@ steps:
|
||||||
repositories:
|
repositories:
|
||||||
- coop-cloud/auto-apps-json
|
- coop-cloud/auto-apps-json
|
||||||
depends_on:
|
depends_on:
|
||||||
- release a new version
|
- release a new version
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
TYPE=${REPO_NAME_KEBAB}
|
TYPE={{ .Name }}
|
||||||
|
|
||||||
|
DOMAIN={{ .Name }}.example.com
|
||||||
|
|
||||||
DOMAIN=${REPO_NAME_KEBAB}.example.com
|
|
||||||
## Domain aliases
|
## Domain aliases
|
||||||
#EXTRA_DOMAINS=', `www.${REPO_NAME_KEBAB}.example.com`'
|
#EXTRA_DOMAINS=', `www.{{ .Name }}.example.com`'
|
||||||
LETS_ENCRYPT_ENV=production
|
LETS_ENCRYPT_ENV=production
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
README.md
|
|
||||||
.env.sample
|
|
||||||
.drone.yml
|
|
|
@ -1 +1 @@
|
||||||
/.envrc
|
.envrc
|
||||||
|
|
26
README.md
26
README.md
|
@ -1,16 +1,18 @@
|
||||||
# ${REPO_NAME_TITLE}
|
# {{ .Name }}
|
||||||
|
|
||||||
${REPO_DESCRIPTION}
|
{{ .Description }}
|
||||||
|
|
||||||
<!-- metadata -->
|
<!-- metadata -->
|
||||||
* **Category**:
|
|
||||||
* **Status**:
|
- **Category**:
|
||||||
* **Image**: [`${REPO_NAME}`](https://hub.docker.com/r/${REPO_NAME}/${REPO_NAME})
|
- **Status**:
|
||||||
* **Healthcheck**:
|
- **Image**:
|
||||||
* **Backups**:
|
- **Healthcheck**:
|
||||||
* **Email**:
|
- **Backups**:
|
||||||
* **Tests**:
|
- **Email**:
|
||||||
* **SSO**:
|
- **Tests**:
|
||||||
|
- **SSO**:
|
||||||
|
|
||||||
<!-- endmetadata -->
|
<!-- endmetadata -->
|
||||||
|
|
||||||
## Basic usage
|
## Basic usage
|
||||||
|
@ -24,5 +26,5 @@ ${REPO_DESCRIPTION}
|
||||||
5. `abra app YOURAPPDOMAIN deploy`
|
5. `abra app YOURAPPDOMAIN deploy`
|
||||||
6. Open the configured domain in your browser to finish set-up
|
6. Open the configured domain in your browser to finish set-up
|
||||||
|
|
||||||
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
|
[`abra`]: https://git.coopcloud.tech/coop-cloud/abra
|
||||||
[`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik
|
[`coop-cloud/traefik`]: https://git.coopcloud.tech/coop-cloud/traefik
|
||||||
|
|
Loading…
Reference in New Issue