Compare commits
131 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 042e21731e | |||
| ae88cf44c6 | |||
| 4396c69849 | |||
| 2222510f85 | |||
| a953b2ab16 | |||
| 531d1fb0aa | |||
| 63c27e90db | |||
| 28270b1b02 | |||
| e36149844c | |||
| f2f6b32a34 | |||
| 99b7c55086 | |||
| b687ea16cd | |||
| b667777e32 | |||
| e1c0b9fb44 | |||
| 5be2d091df | |||
| ee414373d7 | |||
| 191b31573d | |||
| 8aad011b31 | |||
| 269af634c2 | |||
| 43ddc8c743 | |||
| c4b67c6b36 | |||
| 29b30de330 | |||
| 183f19dd33 | |||
| 98fb503321 | |||
| fd58dd6bd7 | |||
| 45894e6325 | |||
| ae3a45f375 | |||
| ffb012148c | |||
| 74a3c90a93 | |||
| 1a7f20fbc3 | |||
| 195ff475d7 | |||
| baa210c1ea | |||
| 23271efbec | |||
| 8246e925dc | |||
| e3d652dcd2 | |||
| 2df0632583 | |||
| 0726cfc424 | |||
| debae01c1a | |||
| b9c590ba70 | |||
| a6dc545479 | |||
| b7558eb842 | |||
| e5f28515b5 | |||
| 7b67284ddb | |||
| 78400eec08 | |||
| 5dbeb89996 | |||
| c9498af823 | |||
| f6fc428b98 | |||
| 2f25e7cb3f | |||
| 51eae71d85 | |||
| b772b626f3 | |||
| 11391fa66d | |||
| 7dd0108e1d | |||
| 7c9c0f8dca | |||
| f1b11cca6d | |||
| ffaa66a086 | |||
| 33d2c7d0c3 | |||
| d6311c95af | |||
| 19f17d5b62 | |||
| 070458d4c8 | |||
| 389e2b7afa | |||
| 4f40973910 | |||
| fb9443a21d | |||
| 3ba38e769f | |||
| 4f32c568d9 | |||
| 7c46dd85f5 | |||
| 03b5e3e90f | |||
| bf843dbddb | |||
| 1b6cd1c56b | |||
| f14ac8bf6e | |||
| 5709c54995 | |||
| c47c6f08df | |||
| 0524fd3818 | |||
| 599045c3b2 | |||
| e2ada5b2d4 | |||
| cc3ef05fa6 | |||
| bb1034e01f | |||
| 6a2e72ee36 | |||
| a2a65c5992 | |||
| fc59ae6276 | |||
| 7ab88380ac | |||
| 8e93e7d342 | |||
| cff4663f34 | |||
| 47cca145c4 | |||
| 8ec5cdb552 | |||
| 446ab4b77a | |||
| 060604d0b9 | |||
| da213b12f8 | |||
| 093252c022 | |||
| b4852f0baf | |||
| 8629ac210f | |||
| a594f86051 | |||
| 94df464cad | |||
| 82ac8f07eb | |||
| ae80e3227e | |||
| e06018c0eb | |||
| 056f1fe16d | |||
| b5c0962ca0 | |||
| 8c68031cf3 | |||
| 5c57946f5c | |||
| ed7008dd16 | |||
| df374fd6f4 | |||
| 288bc0e282 | |||
| aa96482127 | |||
| 4f6f1891ec | |||
| c7c0ebb441 | |||
| 0ba49e2ef2 | |||
| 0fceadafd0 | |||
| f654cb111e | |||
| 9d1f8e5cd9 | |||
| a7aa9bc950 | |||
| ebf9dc3d01 | |||
| 5599b8208f | |||
| 43a6478cbc | |||
| 272842da9e | |||
| fb97720590 | |||
| 30b7c19e22 | |||
| 1d8e3b2cfd | |||
| 3dc6d149d2 | |||
| cb9753644d | |||
| 9c65bfc7fb | |||
| 2f0c4ec6d1 | |||
| 2ef37621b5 | |||
| 68fb23e4ed | |||
| d98f42c628 | |||
| 0507d298d4 | |||
| c54ed9db60 | |||
| 56bbf6067b | |||
| 684a36575e | |||
| 965b614d62 | |||
| 2ace69bbb1 | |||
| 88be17e01a |
@@ -30,11 +30,11 @@ jobs:
|
||||
with:
|
||||
url: ${{ gitea.server_url }}
|
||||
token: ${{ secrets.BOT_GITEA_TOKEN }}
|
||||
assignee: ${{ gitea.actor }}
|
||||
pr-label: 'auto-deploy-pr'
|
||||
|
||||
docker-compose-test:
|
||||
name: Docker Compose Test
|
||||
needs: [create-pr]
|
||||
needs: [check-and-create-pr]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -56,10 +56,64 @@ jobs:
|
||||
env:
|
||||
DOCKER_HOST: tcp://dockerproxy:2375
|
||||
|
||||
cloudflare-dns-setup:
|
||||
name: Cloudflare DNS Setup
|
||||
needs: [docker-compose-test]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install jq
|
||||
uses: dcarbone/install-jq-action@v3.0.1
|
||||
|
||||
- name: Install yq
|
||||
uses: dcarbone/install-yq-action@v1
|
||||
|
||||
- name: Install flarectl
|
||||
uses: supplypike/setup-bin@v4
|
||||
with:
|
||||
uri: 'https://github.com/cloudflare/cloudflare-go/releases/download/v0.113.0/flarectl_0.113.0_linux_amd64.tar.gz'
|
||||
name: 'flarectl'
|
||||
version: '0.113.0'
|
||||
|
||||
- name: Grab Subdomains from Docker Compose & Cloudflare
|
||||
id: grab-subdomains
|
||||
env:
|
||||
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
||||
CF_API_EMAIL: ${{ secrets.CF_API_EMAIL }}
|
||||
run: |
|
||||
echo "Grabbing subdomains from docker-compose.yml..."
|
||||
yq '.services[].labels.swag_url' docker-compose.yml | egrep -v 'null' | sed -e 's|"||g' | awk -F'.' '{print $1}' | sort > compose_subdomains.txt
|
||||
echo "Grabbing subdomains from Cloudflare..."
|
||||
flarectl --json dns list --zone "trez.wtf" --type=CNAME --content "trez.wtf" | jq '.[].Name' | sed -e 's|"||g' | awk -F"." '{print $1}' | sort > cloudflare_subdomains.txt
|
||||
|
||||
- name: Compare Subdomains
|
||||
id: compare-subdomains
|
||||
uses: LouisBrunner/diff-action@v2.2.0
|
||||
with:
|
||||
old: compose_subdomains.txt
|
||||
new: cloudflare_subdomains.txt
|
||||
mode: addition
|
||||
tolerance: mixed-better
|
||||
output: domain_compare.txt
|
||||
|
||||
- name: Create Subdomains
|
||||
if: steps.compare-subdomains.outputs.output != ''
|
||||
env:
|
||||
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
||||
CF_API_EMAIL: ${{ secrets.CF_API_EMAIL }}
|
||||
run: |
|
||||
cat domain_compare.txt | egrep '^-[a-z]' | sed -e 's|-||g' | while read -r subdomain; do
|
||||
echo "Creating $subdomain.trez.wtf..."
|
||||
flarectl dns create --zone "trez.wtf" --name "${subdomain}" --type=CNAME --content "trez.wtf"
|
||||
done
|
||||
|
||||
merge-pr:
|
||||
name: PR Merge
|
||||
runs-on: ubuntu-latest
|
||||
needs: [docker-compose-test]
|
||||
if: ${{ always() }}
|
||||
needs: [cloudflare-dns-setup]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -70,6 +124,5 @@ jobs:
|
||||
chmod +x /usr/local/bin/tea
|
||||
echo "Merging PR..."
|
||||
tea login add --name gitea-rinoa --url ${{ vars.RINOA_GITEA_URL }} --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token ${{ secrets.BOT_GITEA_TOKEN }}
|
||||
echo ${{ gitea.ref_name }}
|
||||
pr_index=$(tea pr ls --repo ${{ github.repository }} --state open --fields index,title,head,state --output csv | egrep ${{ gitea.ref_name }} | awk -F, '{print $1}' | sed -e 's|"||g')
|
||||
tea pr m --repo ${{ github.repository }} --title "${{ github.ref_name }} Auto Merge" --message "Merged by ${{ gitea.actor }}" --output table ${pr_index}
|
||||
+54
-61
@@ -503,6 +503,53 @@ services:
|
||||
networks:
|
||||
default: null
|
||||
restart: unless-stopped
|
||||
bunkerweb:
|
||||
container_name: bunkerweb
|
||||
environment:
|
||||
SERVER_NAME: www.trez.wtf
|
||||
API_WHITELIST_IP: 172.18.0.0/16 192.168.1.0/24
|
||||
USE_REAL_IP: yes
|
||||
REAL_IP_FROM: 172.18.0.0/16
|
||||
REAL_IP_HEADER: X-Forwarded-For
|
||||
expose:
|
||||
- 8080
|
||||
- 8443
|
||||
image: bunkerity/bunkerweb:latest
|
||||
labels:
|
||||
bunkerweb.INSTANCE: yes
|
||||
bunkerweb-scheduler:
|
||||
container_name: bunkerweb-scheduler
|
||||
depends_on:
|
||||
- bunkerweb
|
||||
- docker-socket-proxy
|
||||
environment:
|
||||
DOCKER_HOST: tcp://dockerproxy:2375
|
||||
image: bunkerity/bunkerweb-scheduler:latest
|
||||
volumes:
|
||||
- bunkerweb-data:/data
|
||||
bunkerweb-ui:
|
||||
container_name: bunkerweb-ui
|
||||
depends_on:
|
||||
- bunkerweb
|
||||
- docker-socket-proxy
|
||||
environment:
|
||||
DOCKER_HOST: tcp://dockerproxy:2375
|
||||
expose:
|
||||
- 7000
|
||||
image: bunkerity/bunkerweb-ui:latest
|
||||
labels:
|
||||
homepage.group: Privacy/Security
|
||||
homepage.name: Bunkerweb
|
||||
homepage.href: https://bunker.${MY_TLD}
|
||||
homepage.icon: bunker.svg
|
||||
homepage.description: Next-gen WAF
|
||||
swag: enable
|
||||
swag_port: 7000
|
||||
swag_url: bunker.${MY_TLD}
|
||||
swag.uptime-kuma.enabled: true
|
||||
swag.uptime-kuma.monitor.url: https://bunker.${MY_TLD}
|
||||
volumes:
|
||||
- bunkerweb-data:/data
|
||||
castopod:
|
||||
container_name: castopod
|
||||
depends_on:
|
||||
@@ -691,7 +738,7 @@ services:
|
||||
homepage.group: System Administration
|
||||
homepage.name: Czkawka
|
||||
homepage.href: https://czkawka.${MY_TLD}
|
||||
homepage.icon: sh-czkawka.png
|
||||
homepage.icon: /icons/czkawka.png
|
||||
homepage.description: Smart file management
|
||||
swag: enable
|
||||
swag_port: 5800
|
||||
@@ -1104,7 +1151,7 @@ services:
|
||||
GITEA__mailer__SMTP_PORT: 25
|
||||
GITEA__mailer__USER: ${POSTAL_SMTP_AUTH_USER}
|
||||
GITEA__mailer__PASSWD: ${POSTAL_SMTP_AUTH_PASSWORD}
|
||||
image: gitea/gitea:1.22.2
|
||||
image: gitea/gitea:1.22.6
|
||||
labels:
|
||||
homepage.group: Code/DevOps
|
||||
homepage.name: Gitea
|
||||
@@ -3008,58 +3055,6 @@ services:
|
||||
type: bind
|
||||
bind:
|
||||
create_host_path: true
|
||||
mastodon:
|
||||
container_name: mastodon
|
||||
environment:
|
||||
PUID: ${PUID}
|
||||
PGID: ${PGID}
|
||||
TZ: ${TZ}
|
||||
LOCAL_DOMAIN: trez.wtf
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: 6379
|
||||
DB_HOST: mastodon-pg-db
|
||||
DB_USER: mastodon
|
||||
DB_NAME: mastodon
|
||||
DB_PASS: ${MASTODON_PG_DB_PASSWORD}
|
||||
DB_PORT: 5432
|
||||
ES_ENABLED: false
|
||||
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY:
|
||||
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY:
|
||||
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT:
|
||||
SECRET_KEY_BASE:
|
||||
OTP_SECRET:
|
||||
VAPID_PRIVATE_KEY:
|
||||
VAPID_PUBLIC_KEY:
|
||||
SMTP_SERVER: postal-smtp
|
||||
SMTP_PORT: 25
|
||||
SMTP_LOGIN: ${POSTAL_SMTP_AUTH_USER}
|
||||
SMTP_PASSWORD: ${POSTAL_SMTP_AUTH_PASSWORD}
|
||||
SMTP_FROM_ADDRESS: noreply@trez.wtf
|
||||
S3_ENABLED: true
|
||||
S3_BUCKET: mastodon
|
||||
AWS_ACCESS_KEY_ID: ${MASTODON_MINIO_ACCESS_KEY}
|
||||
AWS_SECRET_ACCESS_KEY: ${MASTODON_MINIO_SECRET_KEY}
|
||||
image: lscr.io/linuxserver/mastodon:latest
|
||||
labels:
|
||||
swag: enable
|
||||
swag_proto: http
|
||||
swag_port: 5678
|
||||
swag_url: mastodon.${MY_TLD}
|
||||
swag.uptime-kuma.enabled: true
|
||||
swag.uptime-kuma.monitor.url: https://mastodon.${MY_TLD}
|
||||
homepage.group: Social
|
||||
homepage.name: Mastodon
|
||||
homepage.href: https://mastodon.${MY_TLD}
|
||||
homepage.icon: mastodon.svg
|
||||
homepage.description: Open-source social network
|
||||
homepage.widget.type: mastodon
|
||||
homepage.widget.url: http://mastodon
|
||||
ports:
|
||||
- 9044:80
|
||||
- 3444:443
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ${DOCKER_VOLUME_CONFIG}/mastodon:/config
|
||||
mastodon-pg-db:
|
||||
container_name: mastodon-pg-db
|
||||
environment:
|
||||
@@ -4405,7 +4400,7 @@ services:
|
||||
homepage.group: Servarr Stack
|
||||
homepage.name: Sonashow
|
||||
homepage.href: https://sonashow.${MY_TLD}
|
||||
homepage.icon: sh-sonashow.png
|
||||
homepage.icon: /icons/sonashow.png
|
||||
homepage.description: TV show discovery based on library/tastes
|
||||
swag: enable
|
||||
swag_auth: authelia
|
||||
@@ -4452,7 +4447,7 @@ services:
|
||||
homepage.group: Downloaders
|
||||
homepage.description: Modern client-server application for the Soulseek file-sharing network.
|
||||
homepage.href: https://slsk.${MY_TLD}
|
||||
homepage.icon: sh-slskd.svg
|
||||
homepage.icon: /icons/slskd.png
|
||||
swag: enable
|
||||
swag_proto: http
|
||||
swag_url: slsk.${MY_TLD}
|
||||
@@ -6481,7 +6476,7 @@ services:
|
||||
homepage.group: System Administration
|
||||
homepage.name: WhoDB
|
||||
homepage.href: https://dbs.${MY_TLD}
|
||||
homepage.icon: sh-whodb.png
|
||||
homepage.icon: /icons/whodb.png
|
||||
homepage.description: Web-based DB management
|
||||
swag: enable
|
||||
swag_proto: http
|
||||
@@ -6982,6 +6977,8 @@ volumes:
|
||||
name: authelia-pg-db
|
||||
bitmagnet-pg-db:
|
||||
name: bitmagnet-pg-db
|
||||
bunkerweb-data:
|
||||
name: bunkerweb-data
|
||||
castopod-media:
|
||||
name: castopod-media
|
||||
crowdsec-config:
|
||||
@@ -7036,10 +7033,6 @@ volumes:
|
||||
name: localai_data
|
||||
mastodon-pg-db:
|
||||
name: mastodon-pg-db
|
||||
meshcentral-data:
|
||||
meshcentral-user_files:
|
||||
meshcentral-backup:
|
||||
meshcentral-web:
|
||||
mongodb_config:
|
||||
name: mongo1_config
|
||||
mongodb_data:
|
||||
|
||||
Reference in New Issue
Block a user