From facaf79ff186658f2d48037f305a47ce99cfe933 Mon Sep 17 00:00:00 2001 From: ryuupendragon Date: Sat, 5 Jul 2025 11:05:37 +0530 Subject: [PATCH] Test WF --- .../workflows/caddy-cloudflare-crowdsec.yml | 74 +++++++++++++++++++ .../caddy-cloudflare-ddns-crowdsec.yml | 0 .gitea/workflows/caddy-cloudflare-ddns.yml | 0 .gitea/workflows/caddy-cloudflare.yml | 0 .gitea/workflows/caddy-crowdsec.yml | 0 .gitea/workflows/caddy-ddns.yml | 0 6 files changed, 74 insertions(+) create mode 100644 .gitea/workflows/caddy-cloudflare-crowdsec.yml create mode 100644 .gitea/workflows/caddy-cloudflare-ddns-crowdsec.yml create mode 100644 .gitea/workflows/caddy-cloudflare-ddns.yml create mode 100644 .gitea/workflows/caddy-cloudflare.yml create mode 100644 .gitea/workflows/caddy-crowdsec.yml create mode 100644 .gitea/workflows/caddy-ddns.yml diff --git a/.gitea/workflows/caddy-cloudflare-crowdsec.yml b/.gitea/workflows/caddy-cloudflare-crowdsec.yml new file mode 100644 index 0000000..f78a9e7 --- /dev/null +++ b/.gitea/workflows/caddy-cloudflare-crowdsec.yml @@ -0,0 +1,74 @@ +name: Docker Build and Publish for caddy-cloudflare-crowdsec + +on: + workflow_dispatch: + push: + branches: [ "test" ] + paths: + - caddy-cloudflare-crowdsec/Dockerfile + +env: + DOCKERHUB_REPO: caddy-cloudflare-crowdsec + +jobs: + build: + strategy: + matrix: + config: + - {arch: 'arm64'} + - {arch: 'amd64'} + runs-on: ${{ matrix.config.arch == 'arm64' && 'ubuntu-arm64' || 'ubuntu-amd64' }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Parse Caddy version + id: version + run: echo "VERSION=$(grep -Eo 'caddy:[0-9]+\.[0-9]+\.[0-9]+$' ${{ env.DOCKERHUB_REPO }}/Dockerfile | cut -d ':' -f2)" >> $GITHUB_ENV + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and Push Docker images for all Container Registries + uses: docker/build-push-action@v6 + with: + tags: ryuupendragon/${{ env.DOCKERHUB_REPO }}:${{ env.VERSION }}-${{matrix.config.arch}}, ryuupendragon/${{ env.DOCKERHUB_REPO }}:latest-${{matrix.config.arch}} + file: ${{ env.DOCKERHUB_REPO }}/Dockerfile + push: true + + merge-docker-manifest: + runs-on: ubuntu-latest + needs: build + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Parse Caddy version + id: version + run: echo "VERSION=$(grep -Eo 'caddy:[0-9]+\.[0-9]+\.[0-9]+$' ${{ env.DOCKERHUB_REPO }}/Dockerfile | cut -d ':' -f2)" >> $GITHUB_ENV + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Create and push manifest images for pinned + uses: Noelware/docker-manifest-action@v1 + with: + inputs: ryuupendragon/${{ env.DOCKERHUB_REPO }}:${{ env.VERSION }}-arm64,ryuupendragon/${{ env.DOCKERHUB_REPO }}:${{ env.VERSION }}-amd64 + tags: ryuupendragon/${{ env.DOCKERHUB_REPO }}:${{ env.VERSION }} + push: true + + - name: Create and push manifest images for latest + uses: Noelware/docker-manifest-action@v1 + with: + inputs: ryuupendragon/${{ env.DOCKERHUB_REPO }}:latest-arm64,ryuupendragon/${{ env.DOCKERHUB_REPO }}:latest-amd64 + tags: ryuupendragon/${{ env.DOCKERHUB_REPO }}:latest + push: true diff --git a/.gitea/workflows/caddy-cloudflare-ddns-crowdsec.yml b/.gitea/workflows/caddy-cloudflare-ddns-crowdsec.yml new file mode 100644 index 0000000..e69de29 diff --git a/.gitea/workflows/caddy-cloudflare-ddns.yml b/.gitea/workflows/caddy-cloudflare-ddns.yml new file mode 100644 index 0000000..e69de29 diff --git a/.gitea/workflows/caddy-cloudflare.yml b/.gitea/workflows/caddy-cloudflare.yml new file mode 100644 index 0000000..e69de29 diff --git a/.gitea/workflows/caddy-crowdsec.yml b/.gitea/workflows/caddy-crowdsec.yml new file mode 100644 index 0000000..e69de29 diff --git a/.gitea/workflows/caddy-ddns.yml b/.gitea/workflows/caddy-ddns.yml new file mode 100644 index 0000000..e69de29