forked from coop-cloud/custom-html
Compare commits
8 Commits
1.3.0+1.23
...
1.3.2+1.23
Author | SHA1 | Date | |
---|---|---|---|
bad32dd353 | |||
f25c45c5c6 | |||
bb9945b38d | |||
c50f5397bf | |||
2a3021744d | |||
a68a31b45c | |||
977a81d493 | |||
ba0f1986a0 |
22
.drone.yml
22
.drone.yml
@ -3,27 +3,37 @@ kind: pipeline
|
|||||||
name: deploy to swarm-test.autonomic.zone
|
name: deploy to swarm-test.autonomic.zone
|
||||||
steps:
|
steps:
|
||||||
- name: deployment
|
- name: deployment
|
||||||
image: decentral1se/stack-ssh-deploy:latest
|
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
||||||
settings:
|
settings:
|
||||||
host: swarm-test.autonomic.zone
|
host: swarm-test.autonomic.zone
|
||||||
stack: custom_html
|
stack: custom_html
|
||||||
purge: true
|
purge: true
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
deploy_key:
|
deploy_key:
|
||||||
from_secret: drone_ssh_swarm_test
|
from_secret: drone_ssh_swarm_test
|
||||||
environment:
|
environment:
|
||||||
DOMAIN: custom-html.swarm-test.autonomic.zone
|
DOMAIN: custom-html.swarm-test.autonomic.zone
|
||||||
STACK_NAME: custom_html
|
STACK_NAME: custom_html
|
||||||
LETS_ENCRYPT_ENV: production
|
LETS_ENCRYPT_ENV: production
|
||||||
|
NGINX_DEFAULT_CONF_VERSION: v1
|
||||||
|
ENTRYPOINT_CONF_VERSION: v1
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: recipe release
|
name: generate recipe catalogue
|
||||||
steps:
|
steps:
|
||||||
- name: release a new version
|
- name: release a new version
|
||||||
image: thecoopcloud/drone-abra:latest
|
image: plugins/downstream
|
||||||
settings:
|
settings:
|
||||||
command: recipe custom-html release
|
server: https://build.coopcloud.tech
|
||||||
deploy_key:
|
token:
|
||||||
from_secret: abra_bot_deploy_key
|
from_secret: drone_abra-bot_token
|
||||||
|
fork: true
|
||||||
|
repositories:
|
||||||
|
- coop-cloud/auto-recipes-catalogue-json
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event: tag
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
# Custom HTML
|
# Custom HTML
|
||||||
|
|
||||||
|
[](https://build.coopcloud.tech/coop-cloud/custom-html)
|
||||||
|
|
||||||
Custom HTML website, served using Nginx.
|
Custom HTML website, served using Nginx.
|
||||||
|
|
||||||
<!-- metadata -->
|
<!-- metadata -->
|
||||||
* **Category**: Apps
|
* **Category**: Development
|
||||||
* **Status**: 2, beta
|
* **Status**: 2, beta
|
||||||
* **Image**: [`nginx`](https://hub.docker.com/_/nginx), 4, upstream
|
* **Image**: [`nginx`](https://hub.docker.com/_/nginx), 4, upstream
|
||||||
* **Healthcheck**: No
|
* **Healthcheck**: No
|
||||||
@ -18,9 +20,9 @@ Custom HTML website, served using Nginx.
|
|||||||
1. Set up Docker Swarm and [`abra`]
|
1. Set up Docker Swarm and [`abra`]
|
||||||
2. Deploy [`coop-cloud/traefik`]
|
2. Deploy [`coop-cloud/traefik`]
|
||||||
3. `abra app new custom-html`
|
3. `abra app new custom-html`
|
||||||
4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to
|
4. `abra app config YOURAPPDOMAIN` - be sure to change `$DOMAIN` to something that resolves to
|
||||||
your Docker swarm box
|
your Docker swarm box
|
||||||
5. `abra app YOURAPPDOMAIN deploy`
|
5. `abra app deploy YOURAPPDOMAIN`
|
||||||
6. Copy your files to the container, using something like
|
6. Copy your files to the container, using something like
|
||||||
```
|
```
|
||||||
abra app YOURAPPDOMAIN cp index.html app:/usr/share/nginx/html
|
abra app YOURAPPDOMAIN cp index.html app:/usr/share/nginx/html
|
||||||
|
@ -19,7 +19,9 @@ services:
|
|||||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
- "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.SSLForceHost=true"
|
||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||||
- "coop-cloud.${STACK_NAME}.version=1.3.0+1.23.3"
|
- "coop-cloud.${STACK_NAME}.version=1.3.2+1.23.3"
|
||||||
|
- "backupbot.backup=true"
|
||||||
|
- "backupbot.backup.path=/usr/share/nginx/html"
|
||||||
environment:
|
environment:
|
||||||
DEFAULT_CONF_FILE: /etc/nginx/conf.d/default.conf
|
DEFAULT_CONF_FILE: /etc/nginx/conf.d/default.conf
|
||||||
volumes:
|
volumes:
|
||||||
|
Reference in New Issue
Block a user