Compare commits

..

3 Commits

Author SHA1 Message Date
3wc
20067dbe93 Don't clobber Traefik's service name for SSO 2021-11-23 12:21:11 +02:00
3wc
3d447a72c8 Goodbye, emojis! 😢
[ci skip]
2021-11-23 12:19:04 +02:00
3wc
0a04bae1f5 WIP: traefik-forward-auth/keycloak support 2021-11-21 21:47:35 +02:00
7 changed files with 7 additions and 62 deletions

View File

@ -8,8 +8,6 @@ steps:
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:
@ -21,17 +19,11 @@ trigger:
- main - main
--- ---
kind: pipeline kind: pipeline
name: generate recipe catalogue name: recipe release
steps: steps:
- name: release a new version - name: release a new version
image: plugins/downstream image: thecoopcloud/drone-abra:latest
settings: settings:
server: https://build.coopcloud.tech command: recipe custom-html release
token: deploy_key:
from_secret: drone_abra-bot_token from_secret: abra_bot_deploy_key
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -9,8 +9,3 @@ COMPOSE_FILE="compose.yml"
# Single Sign On via Traefik "file provider" # Single Sign On via Traefik "file provider"
#COMPOSE_FILE="$COMPOSE_FILE:compose.sso.yml" #COMPOSE_FILE="$COMPOSE_FILE:compose.sso.yml"
# Git-pull regularly
#COMPOSE_FILE="$COMPOSE_FILE:compose.git-pull.yml"
#GIT_REPO_URL="https://git.coopcloud.tech/dalmationer/hexbomb.gay"
#CRON_SCHEDULE="*/1 * * * *"

View File

@ -1,7 +1,5 @@
# Custom HTML # Custom HTML
[![Build Status](https://build.coopcloud.tech/api/badges/coop-cloud/custom-html/status.svg)](https://build.coopcloud.tech/coop-cloud/custom-html)
Custom HTML website, served using Nginx. Custom HTML website, served using Nginx.
<!-- metadata --> <!-- metadata -->

View File

@ -1,2 +1 @@
export NGINX_DEFAULT_CONF_VERSION=v1 export NGINX_DEFAULT_CONF_VERSION=v1
export ENTRYPOINT_CONF_VERSION=v3

View File

@ -1,26 +0,0 @@
version: "3.8"
services:
git:
environment:
- GIT_REPO_URL
image: alpine/git:v2.36.3
entrypoint: /docker-entrypoint.sh
volumes:
- content:/git
configs:
- source: entrypoint_conf
target: /docker-entrypoint.sh
mode: 0555
deploy:
mode: replicated
replicas: 0
labels:
- "swarm.cronjob.enable=true"
- "swarm.cronjob.schedule=${CRON_SCHEDULE:-*/5 * * * *}"
restart_policy:
condition: none
configs:
entrypoint_conf:
name: ${STACK_NAME}_entrypoint_conf_${ENTRYPOINT_CONF_VERSION}
file: entrypoint.git-pull.sh

View File

@ -3,7 +3,7 @@ version: "3.8"
services: services:
app: app:
image: nginx:1.23.3 image: nginx:1.21.3
networks: networks:
- proxy - proxy
deploy: deploy:
@ -19,9 +19,7 @@ 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.1+1.23.3" - "coop-cloud.${STACK_NAME}.version=1.1.0+1.21.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:

View File

@ -1,11 +0,0 @@
#!/bin/sh
if [ ! -d /git/.git ]; then
echo "No repo found, emptying /git/ directory"
rm -r /git/*
echo "Cloning $GIT_REPO_URL into /git"
git clone "$GIT_REPO_URL" /git
else
echo "Updating /git"
git pull
fi