Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/build-pocketbase.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Pocketbase AMD64
name: Build Pocketbase MultiArch
on:
pull_request:
branches:
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
Loading