Skip to content

Commit

Permalink
feat: add nextcloud push-server image
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle committed Jan 9, 2025
1 parent 8602e60 commit b032558
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- spreed/**/*
- nextcloud/janus/**/*
workflow_dispatch:

permissions:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/docker-nextcloud-push-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build Nextcloud Push Server Image

on:
push:
branches:
- main
paths:
- nextcloud/push-server/**/*
workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
push-server:
uses: ./.github/workflows/docker.yml
with:
dockerfile: spreed/push.Dockerfile
context: spreed
tag: spreed:push-${{ vars.SPREED_PUSH_VERSION }}
args: |
JANUS_VERSION=${{ vars.SPREED_PUSH_VERSION }}
labels: |
org.opencontainers.image.description=Update notifications for nextcloud clients
platforms: linux/amd64,linux/arm64
File renamed without changes.
19 changes: 19 additions & 0 deletions nextcloud/push-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ARG PUSH_VERSION=0.7.0

FROM rust:1-alpine AS build

ADD https://github.com/nextcloud/notify_push#v${PUSH_VERSION} /usr/local/src

WORKDIR /usr/local/src

RUN apk add --no-cache \
musl-dev \
&& \
cargo build --release


FROM alpine:3

COPY --from=build /usr/local/src/result/bin/notify_push /usr/local/bin/notify_push

CMD [ "/usr/local/bin/notify_push", "--no-ansi", "--port", "1337", "--bind", "0.0.0.0" ]

0 comments on commit b032558

Please sign in to comment.