From f3f3e92d51229ff4dbfba5fc72ef8d6021236b58 Mon Sep 17 00:00:00 2001 From: LPM Date: Tue, 10 Mar 2026 13:22:33 -0400 Subject: [PATCH 1/3] Update build-pocketbase.yml --- .github/workflows/build-pocketbase.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-pocketbase.yml b/.github/workflows/build-pocketbase.yml index 2ea7780..c23a80e 100644 --- a/.github/workflows/build-pocketbase.yml +++ b/.github/workflows/build-pocketbase.yml @@ -1,4 +1,4 @@ -name: Build Pocketbase AMD64 +name: Build Pocketbase MultiArch on: pull_request: branches: @@ -11,6 +11,21 @@ jobs: name: Build Pocketbase AMD64 and Push runs-on: ubuntu-latest steps: + # STEP 1: Checkout the code + - name: Checkout Code + uses: actions/checkout@v4 + with: + ref: ${{ github.ref_name }} + fetch-depth: 1 + + # STEP 2: Extract PB_VERSION from Dockerfile + - name: Get PB version + id: pb_version + run: | + VERSION=$(grep -oP 'PB_VERSION=\K[^\s]+' Dockerfile) + if [ -z "$VERSION" ]; then echo "PB_VERSION not found" && exit 1; fi + echo "version=$VERSION" >> "$GITHUB_OUTPUT" + - name: Login to Docker Hub uses: docker/login-action@v3 @@ -27,7 +42,7 @@ jobs: with: images: docker.io/${{ vars.DOCKERHUB_USERNAME }}/pocketbase tags: | - type=raw,value=${{ vars.PB_VERSION }} + type=raw,value=${{ steps.pb_version.outputs.version }} type=raw,value=latest - name: Set up Docker Buildx @@ -44,7 +59,7 @@ jobs: - name: Trigger Dokploy Deployment run: | - curl -X 'POST' \ + curl --fail -X 'POST' \ '${{ secrets.DOKPLOY_WEBHOOK_URL }}' \ -H 'Content-Type: application/json' \ -H 'x-github-event: push' \ From 1ee4bcc4e2a8bc31982ad2e7f724c2aa9f145384 Mon Sep 17 00:00:00 2001 From: LPM Date: Tue, 10 Mar 2026 13:24:17 -0400 Subject: [PATCH 2/3] Update build-pocketbase.yml --- .github/workflows/build-pocketbase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-pocketbase.yml b/.github/workflows/build-pocketbase.yml index c23a80e..c3d6f55 100644 --- a/.github/workflows/build-pocketbase.yml +++ b/.github/workflows/build-pocketbase.yml @@ -59,7 +59,7 @@ jobs: - name: Trigger Dokploy Deployment run: | - curl --fail -X 'POST' \ + curl -X 'POST' \ '${{ secrets.DOKPLOY_WEBHOOK_URL }}' \ -H 'Content-Type: application/json' \ -H 'x-github-event: push' \ From fbe263fc783555813c882f6abe4ff633887ce8c3 Mon Sep 17 00:00:00 2001 From: LPM Date: Tue, 10 Mar 2026 13:24:34 -0400 Subject: [PATCH 3/3] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6900d4b..1461c9e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:latest -ARG PB_VERSION=0.36.5 +ARG PB_VERSION=0.36.6 ARG TARGETARCH ENV PB_VERSION=${PB_VERSION}