Add misc CICD scripts and compose file

This commit is contained in:
2024-03-26 16:36:50 -04:00
parent 5e2b41da5d
commit fd4d823cf5
4 changed files with 118 additions and 0 deletions

19
cicd/create-tunnel-config.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
set -e
TUNNEL_ID=$1
HOSTNAME=$2
SERVICE=$3
echo "Creating tunnel config for $HOSTNAME"
cat <<EOF > cloudflared-tunnel-config.yml
tunnel: $TUNNEL_ID
credentials-file: /etc/cloudflared/auth.json
ingress:
- hostname: $HOSTNAME
service: $SERVICE
- service: http_status:404
EOF