Updated workflow to check and update the docker image automatically

This commit is contained in:
Luke Hagar
2024-02-07 09:06:08 -06:00
parent e77ef7a39b
commit d49a2d065a
2 changed files with 43 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
FROM alpine:latest
ARG PB_VERSION=0.21.1
ARG POCKETBASE_VERSION=0.21.1
ARG ENCRYPTION_KEY
ENV PB_ENCRYPTION_KEY=$ENCRYPTION_KEY
@@ -9,7 +9,7 @@ RUN apk add --no-cache \
ca-certificates
# download and unzip PocketBase
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${POCKETBASE_VERSION}/pocketbase_${POCKETBASE_VERSION}_linux_amd64.zip /tmp/pb.zip
RUN unzip /tmp/pb.zip -d /pb/
EXPOSE 8080