8 Commits

Author SHA1 Message Date
feb1e3dbb9 chore: publish 1.0.0+2.38.0 release
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2025-08-31 10:33:34 -07:00
742232d7f1 Switch to Static Web Server from THTTPd 2025-08-20 09:18:39 -07:00
3703df011b Update .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2025-01-08 10:09:12 -08:00
3cb41c2613 chore: publish 0.1.0+0.2.29 release
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-27 14:20:48 -07:00
3wc
9786b3965b Switch to self-hosted stack-ssh-deploy image [mass update]
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-21 11:49:55 -08:00
3wc
692a3898ec Update abra syntax in examples (finally) [mass update]
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-20 10:46:09 -08:00
3wc
5ecf743b6d Add CI and catalogue generation [mass update] 2023-01-20 10:45:33 -08:00
4f8abb3fa7 allow user to use plain http 2022-11-17 11:46:29 +01:00
7 changed files with 57 additions and 7 deletions

38
.drone.yml Normal file
View 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

View File

@ -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"

View File

@ -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`

View File

@ -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
View 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})"

View File

@ -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
View File

@ -0,0 +1 @@
This switches from thttpd to the more reliable SWS