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
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
images: docker.io/${{ vars.DOCKERHUB_USERNAME }}/pocketbase
tags: |
type=raw,value=latest
type=raw,value=build-${{ github.run_number }}
type=raw.value=${{ PB_VERSION }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -39,3 +39,6 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64
push: true
build-args: |
ARCH=${{ vars.AMD64 }}
PB_VERSION=${{ vars.PB_VERSION }}
44 changes: 44 additions & 0 deletions .github/workflows/build-pocketbase-arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build Pocketbase
on:
pull_request:
branches:
- production
types:
- closed
jobs:
if_merged:
if: github.event.pull_request.merged == true
name: Build Pocketbase and Push
runs-on: ubuntu-24.04-arm
steps:
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Container Metadata
uses: docker/metadata-action@v5
id: meta
with:
images: docker.io/${{ vars.DOCKERHUB_USERNAME }}/pocketbase
tags: |
type=raw,value=latest
type=raw.value=${{ PB_VERSION }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and Push
uses: docker/build-push-action@v6
with:
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/arm64
push: true
build-args: |
ARCH=${{ vars.ARM64 }}
PB_VERSION=${{ vars.PB_VERSION }}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM alpine:latest

ARG PB_VERSION=0.29.2
ARG ARCH=amd64

RUN apk add --no-cache \
unzip \
ca-certificates

# download and unzip PocketBase x86 64-bit
ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pb.zip
ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_${ARCH}.zip /tmp/pb.zip
RUN unzip /tmp/pb.zip -d /pb/

# uncomment to copy the local pb_migrations dir into the image
Expand Down
5 changes: 1 addition & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
services:
pocketbase:
container_name: pocketbase
build:
context: .
dockerfile: Dockerfile
image: codefallacy-pocketbase
image: azatecas/pocketbase
restart: unless-stopped
environment:
ENCRYPTION: ${ENCRYPTION} # optional (Ensure this is a 32-character long encryption key https://pocketbase.io/docs/going-to-production/#enable-settings-encryption)
Expand Down