From 195ff475d780f37a6704313edd73e15b8ded1a1a Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Fri, 3 Jan 2025 13:43:01 -0500 Subject: [PATCH] ... --- .gitea/workflows/deployment.yml | 45 ++++++++++++++++----------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/deployment.yml b/.gitea/workflows/deployment.yml index 348ba225..226a1b0f 100644 --- a/.gitea/workflows/deployment.yml +++ b/.gitea/workflows/deployment.yml @@ -43,36 +43,35 @@ jobs: - name: Setup yq uses: dcarbone/install-yq-action@v1 - - name: Setup Go - id: setup-go - uses: actions/setup-go@v5.2.0 - with: - go-version: 'stable' - cache: true - cache-dependency-path: | - **/go.sum - **/go.mod - **/flarectl + # - name: Setup Go + # id: setup-go + # uses: actions/setup-go@v5.2.0 + # with: + # go-version: 'stable' + # cache: true + # cache-dependency-path: | + # **/go.sum + # **/go.mod + # **/flarectl - name: Setup jq uses: dcarbone/install-jq-action@v3.0.1 - name: Install flarectl - uses: tj-actions/setup-bin@v1.2.1 + uses: supplypike/setup-bin@v4 with: - language-type: 'go' - repository: cloudflare-go - repository-owner: cloudflare - version: "latest" + 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: Retrieve Subdomains from Cloudflare & Compose - # id: retrieve-cloudflare-subdomains - # env: - # CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} - # CF_API_EMAIL: ${{ secrets.CF_API_EMAIL }} - # run: | - # 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 - # yq '.services[].labels.swag_url' docker-compose.yml | egrep -v 'null' | sed -e 's|"||g' | awk -F'.' '{print $1}' | sort > compose_subdomains.txt + - name: Retrieve Subdomains from Cloudflare & Compose + id: retrieve-cloudflare-subdomains + env: + CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} + CF_API_EMAIL: ${{ secrets.CF_API_EMAIL }} + run: | + 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 + yq '.services[].labels.swag_url' docker-compose.yml | egrep -v 'null' | sed -e 's|"||g' | awk -F'.' '{print $1}' | sort > compose_subdomains.txt # - name: Compare Subdomains # id: compare-subdomains