From 549657dcc778d36271ce5ae9bf747b4351a65cf5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 13:50:59 +0000 Subject: [PATCH 1/4] Initial plan From 68eb69104fa203a9e61f16e116ea7986824a2734 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 13:54:57 +0000 Subject: [PATCH 2/4] Add GitHub Action workflow for building and pushing Docker images on releases Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com> --- .github/workflows/docker-release.yml | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/docker-release.yml diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml new file mode 100644 index 0000000..ebc578c --- /dev/null +++ b/.github/workflows/docker-release.yml @@ -0,0 +1,45 @@ +name: Docker Release + +on: + release: + types: [published] + push: + tags: + - '*' + +permissions: + contents: read + +jobs: + build-and-push: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Extract tag name + id: tag + run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x + push: true + tags: | + appwrite/requestcatcher:${{ steps.tag.outputs.tag }} + appwrite/requestcatcher:latest From b2aa9d9adca7f04a6fc2144827fd5d6aed535171 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 13:56:01 +0000 Subject: [PATCH 3/4] Fix workflow to trigger only on tag pushes and use GITHUB_REF_NAME for tag extraction Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com> --- .github/workflows/docker-release.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index ebc578c..9102174 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -1,8 +1,6 @@ name: Docker Release on: - release: - types: [published] push: tags: - '*' @@ -32,7 +30,7 @@ jobs: - name: Extract tag name id: tag - run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + run: echo "tag=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT - name: Build and push Docker image uses: docker/build-push-action@v5 From d059852c609e163d350626de7f5ea8fa966b4f54 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 13:57:10 +0000 Subject: [PATCH 4/4] Remove latest tag to match Travis CI behavior Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com> --- .github/workflows/docker-release.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 9102174..f85cdb6 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -38,6 +38,4 @@ jobs: context: . platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x push: true - tags: | - appwrite/requestcatcher:${{ steps.tag.outputs.tag }} - appwrite/requestcatcher:latest + tags: appwrite/requestcatcher:${{ steps.tag.outputs.tag }}