Skip to content

Commit

Permalink
Add GitHub Actions workflow to build and release
Browse files Browse the repository at this point in the history
PocketBase Docker image with version 0.19.1
  • Loading branch information
dragonfire1119 committed Nov 3, 2023
1 parent 20b3d2c commit 8765770
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build_and_release_for_pocketbase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "Build and release for pocketbase"

on:
push:
branches:
- main

jobs:
create:
name: "Creates the newest release by version"
runs-on: "ubuntu-latest"

steps:
- name: Checkout project
uses: actions/[email protected]

# New step to read the VERSION file and set the version as an output
- name: Get the version
id: get_version
run: echo "pocketbase_version=$(cat pocketbase/VERSION)" >> $GITHUB_ENV

- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all

- name: Set up Docker Build
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
context: ./pocketbase
file: ./pocketbase/Dockerfile
tags: |
bigbeartechworld/big-bear-pocketbase:latest
bigbeartechworld/big-bear-pocketbase:${{ env.pocketbase_version }}
1 change: 1 addition & 0 deletions pocketbase/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.19.1

0 comments on commit 8765770

Please sign in to comment.