Compare commits
8 Commits
trunk
...
1.0.0+2.38
| Author | SHA1 | Date | |
|---|---|---|---|
| feb1e3dbb9 | |||
| 742232d7f1 | |||
| 3703df011b | |||
| 3cb41c2613 | |||
| 9786b3965b | |||
| 692a3898ec | |||
| 5ecf743b6d | |||
|
4f8abb3fa7
|
38
.drone.yml
Normal file
38
.drone.yml
Normal file
@ -0,0 +1,38 @@
|
||||
---
|
||||
kind: pipeline
|
||||
name: deploy to swarm-test.autonomic.zone
|
||||
steps:
|
||||
- name: deployment
|
||||
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
||||
settings:
|
||||
host: swarm-test.autonomic.zone
|
||||
stack: custom-html-tiny
|
||||
generate_secrets: true
|
||||
purge: true
|
||||
deploy_key:
|
||||
from_secret: drone_ssh_swarm_test
|
||||
networks:
|
||||
- proxy
|
||||
environment:
|
||||
DOMAIN: custom-html-tiny.swarm-test.autonomic.zone
|
||||
STACK_NAME: custom-html-tiny
|
||||
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:
|
||||
- toolshed/auto-recipes-catalogue-json
|
||||
|
||||
trigger:
|
||||
event: tag
|
||||
@ -16,3 +16,6 @@ COMPOSE_FILE="compose.yml"
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.git-pull.yml"
|
||||
#GIT_REPO_URL="https://git.coopcloud.tech/dalmationer/hexbomb.gay"
|
||||
#CRON_SCHEDULE="*/1 * * * *"
|
||||
|
||||
# Allow access trough plain http
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.http.yml"
|
||||
|
||||
@ -18,9 +18,9 @@ Custom HTML website, served using thttpd
|
||||
1. Set up Docker Swarm and [`abra`]
|
||||
2. Deploy [`coop-cloud/traefik`]
|
||||
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
|
||||
5. `abra app YOURAPPDOMAIN deploy`
|
||||
5. `abra app deploy YOURAPPDOMAIN`
|
||||
6. Copy your files to the container, using something like
|
||||
```
|
||||
abra app YOURAPPDOMAIN cp index.html app:/content
|
||||
@ -34,4 +34,4 @@ abra app YOURAPPDOMAIN cp index.html app:/content
|
||||
1. Set up as above, stop at step 4.
|
||||
2. Deploy `swarm-cronjob` to the host
|
||||
3. `abra app config`, Uncomment Git lines in configuration, and set variables as appropriate.
|
||||
4. `abra app YOURAPPDOMAIN deploy`
|
||||
4. `abra app deploy YOURAPPDOMAIN`
|
||||
|
||||
@ -3,7 +3,7 @@ services:
|
||||
git:
|
||||
environment:
|
||||
- GIT_REPO_URL
|
||||
image: alpine/git:v2.32.0
|
||||
image: alpine/git:v2.36.3
|
||||
entrypoint: /docker-entrypoint.sh
|
||||
volumes:
|
||||
- content:/git
|
||||
|
||||
8
compose.http.yml
Normal file
8
compose.http.yml
Normal file
@ -0,0 +1,8 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
deploy:
|
||||
labels:
|
||||
- "traefik.http.routers.${STACK_NAME}_http.entrypoints=web"
|
||||
- "traefik.http.routers.${STACK_NAME}_http.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||
@ -3,8 +3,8 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: dragas/thttpd
|
||||
command: ["-D", "-l", "/dev/stderr", "-d", "/var/www/http/$HTTP_SUBDIR"]
|
||||
image: joseluisq/static-web-server:2.38.0
|
||||
command: ["-a", "0.0.0.0", "-p", "80", "-g", "warn", "-d", "/var/www/http/$HTTP_SUBDIR"]
|
||||
networks:
|
||||
- proxy
|
||||
deploy:
|
||||
@ -17,7 +17,7 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
# Redirect from EXTRA_DOMAINS to DOMAIN
|
||||
- "coop-cloud.${STACK_NAME}.version=1.2.1+1.21.6"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.0.0+2.38.0"
|
||||
environment:
|
||||
- HTTP_SUBDIR
|
||||
volumes:
|
||||
|
||||
1
release/1.0.0+2.38.0
Normal file
1
release/1.0.0+2.38.0
Normal file
@ -0,0 +1 @@
|
||||
This switches from thttpd to the more reliable SWS
|
||||
Reference in New Issue
Block a user