new pocketbase version

This commit is contained in:
Andras Bacsai 2022-12-22 11:22:37 +01:00
parent c8f7ca920e
commit dc130d3705
2 changed files with 8 additions and 10 deletions

View File

@ -3,10 +3,8 @@ name: pocketbase-release
on: on:
push: push:
paths: paths:
- "others/pocketbase" - "others/pocketbase/*"
- ".github/workflows/pocketbase-release.yml" - ".github/workflows/pocketbase-release.yml"
branches:
- next
jobs: jobs:
arm64: arm64:
@ -29,7 +27,7 @@ jobs:
context: others/pocketbase/ context: others/pocketbase/
platforms: linux/arm64 platforms: linux/arm64
push: true push: true
tags: coollabsio/pocketbase:0.8.0-arm64 tags: coollabsio/pocketbase:0.10.2-arm64
amd64: amd64:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -50,7 +48,7 @@ jobs:
context: others/pocketbase/ context: others/pocketbase/
platforms: linux/amd64 platforms: linux/amd64
push: true push: true
tags: coollabsio/pocketbase:0.8.0-amd64 tags: coollabsio/pocketbase:0.10.2-amd64
aarch64: aarch64:
runs-on: [self-hosted, arm64] runs-on: [self-hosted, arm64]
steps: steps:
@ -71,7 +69,7 @@ jobs:
context: others/pocketbase/ context: others/pocketbase/
platforms: linux/aarch64 platforms: linux/aarch64
push: true push: true
tags: coollabsio/pocketbase:0.8.0-aarch64 tags: coollabsio/pocketbase:0.10.2-aarch64
merge-manifest: merge-manifest:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [amd64, arm64, aarch64] needs: [amd64, arm64, aarch64]
@ -89,5 +87,5 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Create & publish manifest - name: Create & publish manifest
run: | run: |
docker manifest create coollabsio/pocketbase:0.8.0 --amend coollabsio/pocketbase:0.8.0-amd64 --amend coollabsio/pocketbase:0.8.0-arm64 --amend coollabsio/pocketbase:0.8.0-aarch64 docker manifest create coollabsio/pocketbase:0.10.2 --amend coollabsio/pocketbase:0.10.2-amd64 --amend coollabsio/pocketbase:0.10.2-arm64 --amend coollabsio/pocketbase:0.10.2-aarch64
docker manifest push coollabsio/pocketbase:0.8.0 docker manifest push coollabsio/pocketbase:0.10.2

View File

@ -1,6 +1,6 @@
FROM alpine:3.17 FROM alpine:3.17
ARG BUILDARCH ARG BUILDARCH
ARG PB_VERSION=0.8.0 ARG PB_VERSION=0.10.2
RUN apk add --no-cache \ RUN apk add --no-cache \
unzip \ unzip \
ca-certificates ca-certificates
@ -9,4 +9,4 @@ ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/po
RUN unzip /tmp/pb.zip -d /app/ RUN unzip /tmp/pb.zip -d /app/
RUN rm /tmp/pb.zip RUN rm /tmp/pb.zip
EXPOSE 8080 EXPOSE 8080
CMD ["/app/pocketbase", "serve", "--http=0.0.0.0:8080"] CMD ["/app/pocketbase", "serve", "--http=0.0.0.0:8080"]