Compare commits

..

121 Commits

Author SHA1 Message Date
Trez.One f2f6b32a34 Hopefully the final version.
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Check and Create PR (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Docker Compose Test (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Cloudflare DNS Setup (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / PR Merge (push) Has been cancelled
2025-01-03 15:38:07 -05:00
Trez.One 99b7c55086 Changing manual approval action. 2025-01-03 15:30:37 -05:00
Trez.One b687ea16cd Changing manual approval action. 2025-01-03 15:25:04 -05:00
Trez.One b667777e32 Env fixes 2025-01-03 15:15:24 -05:00
Trez.One e1c0b9fb44 .... 2025-01-03 15:12:46 -05:00
Trez.One 5be2d091df .... 2025-01-03 15:09:36 -05:00
Trez.One ee414373d7 .... 2025-01-03 15:07:45 -05:00
Trez.One 191b31573d .... 2025-01-03 15:03:38 -05:00
Trez.One 8aad011b31 .... 2025-01-03 14:57:38 -05:00
Trez.One 269af634c2 .... 2025-01-03 14:54:54 -05:00
Trez.One 43ddc8c743 .... 2025-01-03 14:50:32 -05:00
Trez.One c4b67c6b36 .... 2025-01-03 14:43:22 -05:00
Trez.One 29b30de330 .... 2025-01-03 14:41:05 -05:00
Trez.One 183f19dd33 ..... 2025-01-03 14:27:55 -05:00
Trez.One 98fb503321 .... 2025-01-03 14:23:14 -05:00
Trez.One fd58dd6bd7 .... 2025-01-03 14:20:30 -05:00
Trez.One 45894e6325 .... 2025-01-03 14:16:45 -05:00
Trez.One ae3a45f375 .... 2025-01-03 14:15:26 -05:00
Trez.One ffb012148c ... 2025-01-03 13:55:43 -05:00
Trez.One 74a3c90a93 ... 2025-01-03 13:47:52 -05:00
Trez.One 1a7f20fbc3 ... 2025-01-03 13:45:40 -05:00
Trez.One 195ff475d7 ... 2025-01-03 13:43:01 -05:00
Trez.One baa210c1ea ... 2025-01-03 13:21:10 -05:00
Trez.One 23271efbec ... 2025-01-03 13:17:25 -05:00
Trez.One 8246e925dc ... 2025-01-03 13:11:04 -05:00
Trez.One e3d652dcd2 ... 2025-01-03 12:51:56 -05:00
Trez.One 2df0632583 ... 2025-01-03 11:24:58 -05:00
Trez.One 0726cfc424 Removing check-latest. 2025-01-03 11:16:39 -05:00
Trez.One debae01c1a Removing cache-dependency-path for now 2025-01-03 11:07:21 -05:00
Trez.One b9c590ba70 Adjusting cache-dependency-path 2025-01-03 10:59:40 -05:00
Trez.One a6dc545479 Adjusting cache-dependency-path 2025-01-03 10:55:42 -05:00
Trez.One b7558eb842 Step id change 2025-01-03 10:50:09 -05:00
Trez.One e5f28515b5 Switching setup-go action and removing generic cache action. 2025-01-03 10:46:59 -05:00
Trez.One 7b67284ddb Forgot to add ID for cache step and adjusting the cache key. 2025-01-03 10:33:51 -05:00
Trez.One 78400eec08 Updated catche step, flarectl install, and subdomain extraction. 2025-01-03 10:15:08 -05:00
Trez.One 5dbeb89996 Changing cache action. 2025-01-03 10:05:20 -05:00
Trez.One c9498af823 go env and changing mode for diff action. 2025-01-03 09:55:07 -05:00
Trez.One f6fc428b98 Typo fix on L80. 2025-01-03 09:46:16 -05:00
Trez.One 2f25e7cb3f Changed Docker Compose test needs param. 2025-01-02 15:32:54 -05:00
Trez.One 51eae71d85 Diff action. 2025-01-02 14:41:35 -05:00
Trez.One b772b626f3 Re-adding Docker Compose Lint and Gotify notification. 2025-01-02 14:21:49 -05:00
Trez.One 11391fa66d Re-adding Docker Compose Lint and Gotify notification. 2025-01-02 10:03:59 -05:00
Trez.One 7dd0108e1d Env fixes. 2025-01-02 09:44:46 -05:00
Trez.One 7c9c0f8dca Debugging CF subdomain step........... 2025-01-01 14:47:08 -05:00
Trez.One f1b11cca6d Debugging CF subdomain step........... 2025-01-01 14:40:30 -05:00
Trez.One ffaa66a086 Debugging CF subdomain step.......... 2025-01-01 14:26:30 -05:00
Trez.One 33d2c7d0c3 Debugging CF subdomain step......... 2025-01-01 14:10:10 -05:00
Trez.One d6311c95af Debugging CF subdomain step......... 2025-01-01 14:08:17 -05:00
Trez.One 19f17d5b62 Debugging CF subdomain step........ 2025-01-01 13:59:35 -05:00
Trez.One 070458d4c8 Debugging CF subdomain step....... 2025-01-01 13:54:18 -05:00
Trez.One 389e2b7afa Debugging CF subdomain step...... 2025-01-01 13:48:14 -05:00
Trez.One 4f40973910 Debugging CF subdomain step..... 2025-01-01 13:38:29 -05:00
Trez.One fb9443a21d Debugging CF subdomain step.... 2025-01-01 13:20:07 -05:00
Trez.One 3ba38e769f Debugging CF subdomain step... 2025-01-01 13:11:36 -05:00
Trez.One 4f32c568d9 Debugging CF subdomain step.. 2025-01-01 12:55:15 -05:00
Trez.One 03b5e3e90f Debugging CF subdomain step.. 2025-01-01 12:28:06 -05:00
Trez.One bf843dbddb Debugging CF subdomain step; adding cache action. 2025-01-01 12:12:53 -05:00
Trez.One 1b6cd1c56b Debugging CF subdomain step. 2025-01-01 12:02:52 -05:00
Trez.One f14ac8bf6e ... 2025-01-01 11:47:53 -05:00
Trez.One 5709c54995 ... 2025-01-01 11:35:23 -05:00
Trez.One c47c6f08df ... 2025-01-01 11:27:06 -05:00
Trez.One 0524fd3818 ... 2025-01-01 11:20:13 -05:00
Trez.One 599045c3b2 ... 2025-01-01 11:17:37 -05:00
Trez.One e2ada5b2d4 ... 2025-01-01 11:15:16 -05:00
Trez.One cc3ef05fa6 ... 2025-01-01 11:08:08 -05:00
Trez.One bb1034e01f ... 2025-01-01 11:02:27 -05:00
Trez.One 6a2e72ee36 ... 2025-01-01 10:59:53 -05:00
Trez.One a2a65c5992 Removing jq from docker run action 2025-01-01 10:47:59 -05:00
Trez.One fc59ae6276 ... 2025-01-01 10:44:50 -05:00
Trez.One 7ab88380ac ... 2025-01-01 10:37:57 -05:00
Trez.One 8e93e7d342 Docker host envs. 2025-01-01 10:34:41 -05:00
Trez.One cff4663f34 Typo fix, L52. 2025-01-01 10:31:01 -05:00
Trez.One 47cca145c4 Expanded CF DNS setup. 2025-01-01 10:28:09 -05:00
Trez.One 8ec5cdb552 ... 2025-01-01 08:52:43 -05:00
Trez.One 446ab4b77a ... 2024-12-31 20:20:10 -05:00
Trez.One 060604d0b9 ... 2024-12-31 20:15:31 -05:00
Trez.One da213b12f8 ... 2024-12-31 19:51:58 -05:00
Trez.One 093252c022 Echoes... (now I have to listen to the Pink Floyd song) 2024-12-31 19:38:21 -05:00
Trez.One b4852f0baf Switching to a different setup-go action. 2024-12-31 19:29:18 -05:00
Trez.One 8629ac210f Checking to see if the runner has go already installed. 2024-12-31 19:25:52 -05:00
Trez.One a594f86051 Added Cloudflare DNS setup and Gotify notification action. 2024-12-31 19:17:33 -05:00
Trez.One 94df464cad Forgot to add version input for Go setup. 2024-12-31 18:36:35 -05:00
Trez.One 82ac8f07eb Bumping setup-go action version. 2024-12-31 18:29:45 -05:00
Trez.One ae80e3227e Combining subdomain check and parsing into one step. 2024-12-31 18:27:27 -05:00
Trez.One e06018c0eb Combining subdomain check and parsing into one step. 2024-12-31 18:24:22 -05:00
Trez.One 056f1fe16d Combining subdomain check and parsing into one step. 2024-12-31 18:21:53 -05:00
Trez.One b5c0962ca0 Removing grep. 2024-12-31 12:47:19 -05:00
Trez.One 8c68031cf3 Envs for flarectl. 2024-12-31 12:44:48 -05:00
Trez.One 5c57946f5c Envs for flarectl. 2024-12-31 12:33:10 -05:00
Trez.One ed7008dd16 Flarectl param fix. 2024-12-31 12:29:21 -05:00
Trez.One df374fd6f4 Grep fix for flarectl. 2024-12-31 11:54:48 -05:00
Trez.One 288bc0e282 Grep fix for flarectl. 2024-12-31 11:52:03 -05:00
Trez.One aa96482127 Grep fix for flarectl. 2024-12-31 11:49:10 -05:00
Trez.One 4f6f1891ec Docker run action for flarectl. 2024-12-31 11:46:10 -05:00
Trez.One c7c0ebb441 Docker run action for flarectl. 2024-12-31 11:42:08 -05:00
Trez.One 0ba49e2ef2 Docker run action for flarectl. 2024-12-31 11:39:33 -05:00
Trez.One 0fceadafd0 Docker run action for flarectl. 2024-12-31 11:36:41 -05:00
Trez.One f654cb111e Docker run action for flarectl. 2024-12-31 11:33:56 -05:00
Trez.One 9d1f8e5cd9 YQ tweaks. 2024-12-31 11:07:14 -05:00
Trez.One a7aa9bc950 YQ tweaks. 2024-12-31 11:00:49 -05:00
Trez.One ebf9dc3d01 YQ tweaks. 2024-12-31 10:57:42 -05:00
Trez.One 5599b8208f YQ tweaks. 2024-12-31 10:55:30 -05:00
Trez.One 43a6478cbc YQ tweaks. 2024-12-31 10:52:07 -05:00
Trez.One 272842da9e YQ tweaks. 2024-12-31 10:50:17 -05:00
Trez.One fb97720590 YQ tweaks. 2024-12-31 10:47:55 -05:00
Trez.One 30b7c19e22 YQ tweaks. 2024-12-31 10:45:41 -05:00
Trez.One 1d8e3b2cfd YQ tweaks. 2024-12-31 10:34:24 -05:00
Trez.One 3dc6d149d2 Setting up yq installer. 2024-12-31 10:27:06 -05:00
Trez.One cb9753644d Changing YAML parser action. 2024-12-31 10:21:49 -05:00
Trez.One 9c65bfc7fb Changing YAML parser action. 2024-12-31 10:17:48 -05:00
Trez.One 2f0c4ec6d1 Changing YAML parser action. 2024-12-31 10:14:22 -05:00
Trez.One 2ef37621b5 Formatted compose file. 2024-12-31 10:01:54 -05:00
Trez.One 68fb23e4ed Fixing file path. 2024-12-31 09:45:15 -05:00
Trez.One d98f42c628 Fixing key filter. 2024-12-31 09:42:18 -05:00
Trez.One 0507d298d4 Testing out YAML parser. 2024-12-31 09:39:28 -05:00
Trez.One c54ed9db60 Testing out YAML parser. 2024-12-31 09:28:20 -05:00
Trez.One 56bbf6067b Testing Cloudflare DNS update. 2024-12-31 08:41:39 -05:00
Trez.One 684a36575e Correct var for CF API token. 2024-12-31 07:42:32 -05:00
Trez.One 965b614d62 Testing out Cloudflare export. 2024-12-31 07:39:45 -05:00
Trez.One 2ace69bbb1 Testing out Cloudflare export. 2024-12-31 07:30:28 -05:00
Trez.One 88be17e01a Testing out Cloudflare export. 2024-12-31 07:28:28 -05:00
3 changed files with 95 additions and 46 deletions
+58 -5
View File
@@ -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}
tea pr m --repo ${{ github.repository }} --title "Auto Merge of ${{ gitea.ref_name }}" --message "Merged by ${{ gitea.actor }}" --output table ${pr_index}
+1 -3
View File
@@ -1,8 +1,6 @@
# List of Services
```json
~> yq '.services | to_entries | map({service: .key, image: .value.image})' docker-compose.yml
```
[
{
"service": "actual_server",
+36 -38
View File
@@ -342,7 +342,7 @@ services:
homepage.group: Downloaders
homepage.name: Bitmagnet
homepage.href: https://btmag.${MY_TLD}
homepage.icon: sh-bitmagnet.png
homepage.icon: /icons/bitmagnet.svg
homepage.description: Torrent indexer, DHT crawler, search engine, & content classifier
homepage.widget.type: gluetun
homepage.widget.url: http://gluetun:8000
@@ -691,7 +691,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
@@ -744,7 +744,7 @@ services:
homepage.group: System Administration
homepage.name: Dagu
homepage.href: https://cron.${MY_TLD}
homepage.icon: sh-dagu.png
homepage.icon: /icons/dagu.png
homepage.description: Cron alternative using DAGs (Directed Acyclic Graphs)
swag: enable
swag_port: 8080
@@ -983,7 +983,7 @@ services:
labels:
homepage.group: Lifestyle
homepage.name: Fasten
homepage.icon: sh-fasten-health.svg
homepage.icon: /icons/fastenhealth.png
homepage.href: http://health.${MY_TLD}
homepage.description: Open-source, self-hosted, personal/family electronic medical record aggregator
swag: enable
@@ -1187,7 +1187,7 @@ services:
homepage.description: Private Code Gists
homepage.group: Code/DevOps
homepage.href: https://gist.trez.wtf
homepage.icon: sh-opengist.svg
homepage.icon: /icons/opengist.svg
homepage.name: Opengist
swag: enable
swag.uptime-kuma.enabled: "true"
@@ -1398,7 +1398,7 @@ services:
homepage.name: Grafana Alloy
homepage.description: Agent for metric/log/trace/profile collection and writing
homepage.href: http://192.168.1.254:12345
homepage.icon: sh-grafana-alloy.svg
homepage.icon: /icons/grafana-alloy.svg
networks:
default: null
ports:
@@ -1590,31 +1590,6 @@ services:
type: bind
bind:
create_host_path: true
guacamole:
container_name: guacamole
environment:
DOCKER_HOST: tcp://dockerproxy:2375
EXTENSIONS: 'auth-totp'
TZ: ${TZ}
image: flcontainers/guacamole:latest
labels:
homepage.group: System Administration
homepage.name: Guacamole
homepage.description: Client-less remote desktop gateway
homepage.href: https://guac.trez.wtf
homepage.icon: guacamole.svg
swag: enable
swag_proto: http
swag_port: 8080
swag_url: guac.${MY_TLD}
swag.uptime-kuma.enabled: true
swag.uptime-kuma.monitor.url: https://guac.${MY_TLD}
ports:
- 62173:8080
restart: always
volumes:
- ${DOCKER_VOLUME_CONFIG}/guacamole/:/config
- /etc/localtime:/etc/localtime:ro
homepage:
container_name: homepage
image: ghcr.io/gethomepage/homepage:latest
@@ -2813,7 +2788,7 @@ services:
homepage.group: Servarr Stack
homepage.name: Lidify
homepage.href: https://lidify.${MY_TLD}
homepage.icon: sh-lidify.png
homepage.icon: /icons/lidify.png
homepage.description: Music Discovery a la Last.fm, Spotify, Pandora, etc.
swag: enable
swag_auth: authelia
@@ -3078,6 +3053,29 @@ services:
restart: always
volumes:
- mastodon-pg-db:/var/lib/postgresql/data
meshcentral:
container_name: meshcentral
image: ghcr.io/ylianst/meshcentral:master
labels:
homepage.group: System Administration
homepage.name: MeshCentral
homepage.href: https://mesh.${MY_TLD}
homepage.icon: meshcentral.png
homepage.description:
swag: enable
swag_proto: http
swag_port: 80
swag_url: mesh.${MY_TLD}
ports:
- 46717:80 # HTTP
- 61741:443 # HTTPS
- 42865:4433 # AMT (Optional)
restart: unless-stopped
volumes:
- meshcentral-data:/opt/meshcentral/meshcentral-data
- meshcentral-user_files:/opt/meshcentral/meshcentral-files
- meshcentral-backup:/opt/meshcentral/meshcentral-backups
- meshcentral-web:/opt/meshcentral/meshcentral-web
minio:
command: server --console-address ":9090" /mnt/data
container_name: minio
@@ -3151,7 +3149,7 @@ services:
homepage.group: Media Library
homepage.name: Multi-Scrobbler
homepage.href: http://192.168.1.254:9078
homepage.icon: sh-multi-scrobbler.svg
homepage.icon: /icons/multi-scrobbler.png
homepage.description: JS App for scrobbling/recording play history from/to multiple sources
networks:
default: null
@@ -3590,7 +3588,7 @@ services:
homepage.group: System Administration
homepage.name: Postal
homepage.href: https://post.${MY_TLD}
homepage.icon: sh-postal.svg
homepage.icon: /icons/postal.png
homepage.description: OSS Mail delivery platform
networks:
default: null
@@ -3694,7 +3692,7 @@ services:
homepage.group: Servarr Stack
homepage.name: RadaRec
homepage.href: https://radarec.${MY_TLD}
homepage.icon: sh-radarec.png
homepage.icon: /icons/radarec.png
homepage.description: Movie discovery based on library/tastes
swag: enable
swag_proto: http
@@ -4405,7 +4403,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 +4450,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 +6479,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