mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 08:43:10 -07:00
fix signal directory permissions in docker, fix version-based cache busting
This commit is contained in:
parent
c82b5381fc
commit
2a7b1e91c6
4 changed files with 13 additions and 3 deletions
3
.github/workflows/release-dev.yml
vendored
3
.github/workflows/release-dev.yml
vendored
|
|
@ -28,4 +28,7 @@ jobs:
|
|||
context: .
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
build-args: |
|
||||
VERSION=dev
|
||||
COMMIT=${{ github.sha }}
|
||||
tags: ghcr.io/lone-cloud/prism:dev
|
||||
|
|
|
|||
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
|
@ -70,6 +70,9 @@ jobs:
|
|||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
build-args: |
|
||||
VERSION=${{ steps.version.outputs.tag }}
|
||||
COMMIT=${{ github.sha }}
|
||||
tags: |
|
||||
ghcr.io/lone-cloud/prism:${{ steps.version.outputs.tag }}
|
||||
ghcr.io/lone-cloud/prism:latest
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
FROM golang:1.25-alpine3.23 AS builder
|
||||
|
||||
ARG VERSION=dev
|
||||
ARG COMMIT=unknown
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
RUN apk add --no-cache git ca-certificates
|
||||
|
|
@ -11,7 +14,7 @@ COPY . .
|
|||
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build \
|
||||
-trimpath \
|
||||
-ldflags="-w -s -X main.version=$(cat VERSION 2>/dev/null || echo dev) -X main.commit=$(git rev-parse --short HEAD 2>/dev/null || echo unknown)" \
|
||||
-ldflags="-w -s -X main.version=${VERSION} -X main.commit=${COMMIT}" \
|
||||
-o prism .
|
||||
|
||||
FROM debian:trixie-slim
|
||||
|
|
@ -35,7 +38,8 @@ COPY --from=builder /build/prism .
|
|||
|
||||
RUN useradd -m -u 1000 prism && \
|
||||
mkdir -p /app/data && \
|
||||
chown -R prism:prism /app
|
||||
mkdir -p /home/prism/.local/share/signal-cli && \
|
||||
chown -R prism:prism /app /home/prism
|
||||
|
||||
USER prism
|
||||
|
||||
|
|
|
|||
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
0.2.0
|
||||
0.2.1
|
||||
Loading…
Add table
Reference in a new issue