From 269af634c2f4753bc5d2feb357ee4d1aec825f76 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Fri, 3 Jan 2025 14:54:54 -0500 Subject: [PATCH] .... --- .gitea/workflows/deployment.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/deployment.yml b/.gitea/workflows/deployment.yml index c29d6b15..d7d1db16 100644 --- a/.gitea/workflows/deployment.yml +++ b/.gitea/workflows/deployment.yml @@ -77,31 +77,31 @@ jobs: name: 'flarectl' version: '0.113.0' - - name: Subdomain/CNAME Comparison & Creation + - 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: | - flarectl dns list --zone "trez.wtf" --type=CNAME --content "trez.wtf" - 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 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 and Create Missing Ones id: compare-subdomains uses: LouisBrunner/diff-action@v2.2.0 with: old: compose_subdomains.txt new: cloudflare_subdomains.txt - mode: 'addition' + mode: addition tolerance: mixed-better + output: domain_compare.txt - - name: Create Missing Subdomains - if: steps.compare-subdomains.outputs.output != '' - run: | - echo ${{ steps.compare-subdomains.outputs.output }} + # - name: Create Missing Subdomains + # if: steps.compare-subdomains.outputs.output != '' + # run: | + # cat ${{ steps.compare-subdomains.outputs.output }} # merge-pr: # name: PR Merge