From e11a9c3ac975eedf41e8ff8e3eb8473219867db2 Mon Sep 17 00:00:00 2001 From: Kelly Thomas Reardon Date: Mon, 4 May 2026 22:41:23 -0500 Subject: [PATCH 1/4] testing gitea actions --- .gitea/workflows/docker-build.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/docker-build.yaml diff --git a/.gitea/workflows/docker-build.yaml b/.gitea/workflows/docker-build.yaml new file mode 100644 index 0000000..120d184 --- /dev/null +++ b/.gitea/workflows/docker-build.yaml @@ -0,0 +1,30 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - gitea-actions-testing + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: blinkfink182/qbt-gluetun-portmgr:test \ No newline at end of file From 8a15cf1b23b0893000eebbafb7c1faf63fe95f23 Mon Sep 17 00:00:00 2001 From: Kelly Thomas Reardon Date: Mon, 4 May 2026 22:55:58 -0500 Subject: [PATCH 2/4] updated tagging on build actions --- .gitea/workflows/docker-build.yaml | 49 +++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/docker-build.yaml b/.gitea/workflows/docker-build.yaml index 120d184..bee63e1 100644 --- a/.gitea/workflows/docker-build.yaml +++ b/.gitea/workflows/docker-build.yaml @@ -27,4 +27,51 @@ jobs: with: context: . push: true - tags: blinkfink182/qbt-gluetun-portmgr:test \ No newline at end of file + tags: blinkfink182/qbt-gluetun-portmgr:test + + +name: Build and Push Docker Image + +on: + push: + branches: + - "**" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Compute image tag + id: tag + run: | + BRANCH="${{ gitea.ref_name }}" + + if [ "$BRANCH" = "main" ]; then + TAG="latest" + elif [[ "$BRANCH" == v* ]]; then + TAG="$BRANCH" + else + TAG="test" + fi + + echo "tag=$TAG" >> $GITHUB_OUTPUT + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: blinkfink182/qbt-gluetun-portmgr:${{ steps.tag.outputs.tag }} \ No newline at end of file From e2ed830d1a2af50bb4b51b280ab27976bf62300b Mon Sep 17 00:00:00 2001 From: Kelly Thomas Reardon Date: Mon, 4 May 2026 22:56:38 -0500 Subject: [PATCH 3/4] corrected build file --- .gitea/workflows/docker-build.yaml | 32 ------------------------------ 1 file changed, 32 deletions(-) diff --git a/.gitea/workflows/docker-build.yaml b/.gitea/workflows/docker-build.yaml index bee63e1..fccefbb 100644 --- a/.gitea/workflows/docker-build.yaml +++ b/.gitea/workflows/docker-build.yaml @@ -1,37 +1,5 @@ name: Build and Push Docker Image -on: - push: - branches: - - gitea-actions-testing - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: blinkfink182/qbt-gluetun-portmgr:test - - -name: Build and Push Docker Image - on: push: branches: From 150be6cf33ac96aed92df5263633190d626a5c9b Mon Sep 17 00:00:00 2001 From: Kelly Thomas Reardon Date: Mon, 4 May 2026 23:04:53 -0500 Subject: [PATCH 4/4] testing apprise notifications on build --- .gitea/workflows/docker-build.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/docker-build.yaml b/.gitea/workflows/docker-build.yaml index fccefbb..63097bb 100644 --- a/.gitea/workflows/docker-build.yaml +++ b/.gitea/workflows/docker-build.yaml @@ -42,4 +42,28 @@ jobs: with: context: . push: true - tags: blinkfink182/qbt-gluetun-portmgr:${{ steps.tag.outputs.tag }} \ No newline at end of file + tags: blinkfink182/qbt-gluetun-portmgr:${{ steps.tag.outputs.tag }} + + - name: Notify Apprise (success) + if: success() + run: | + curl -X POST \ + -H "Content-Type: application/json" \ + -d "{ + \"tags\": \"all\", + \"title\": \"Gitea Build Succeeded\", + \"body\": \"Repo: ${{ gitea.repository }}\\nBranch: ${{ gitea.ref_name }}\\nImage tag built successfully\" + }" \ + http://10.47.0.213:4444/notify/926263506803e21d72e382edd0caf3fb510a9629d860601dfb79506b5758c133 + + - name: Notify Apprise (failure) + if: failure() + run: | + curl -X POST \ + -H "Content-Type: application/json" \ + -d "{ + \"tags\": \"all\", + \"title\": \"Gitea Build Failed\", + \"body\": \"Repo: ${{ gitea.repository }}\\nBranch: ${{ gitea.ref_name }}\\nCheck logs in Gitea\" + }" \ + http://10.47.0.213:4444/notify/926263506803e21d72e382edd0caf3fb510a9629d860601dfb79506b5758c133 \ No newline at end of file