Skip to content

Commit

Permalink
Merge pull request #46 from LilDrunkenSmurf/feat/add-rss-notifier
Browse files Browse the repository at this point in the history
Feat: Add rss-forwarder
  • Loading branch information
joryirving authored Jan 21, 2024
2 parents a58dfec + 87bec32 commit 25a0113
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
30 changes: 30 additions & 0 deletions apps/rss-forwarder/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM rust:1.75.0 as builder

ARG VERSION
ARG CHANNEL
ARG TARGETPLATFORM
ARG TARGETARCH
ARG TARGETOS

LABEL repository="https://github.com/morphy2k/rss-forwarder"
LABEL maintainer="Markus Wiegand <mail@morphy2k.dev>"
LABEL dev.LilDrunkenSmurf.image.target_platform=$TARGETPLATFORM
LABEL dev.LilDrunkenSmurf.image.target_architecture=$TARGETARCH
LABEL dev.LilDrunkenSmurf.image.target_os=$TARGETOS
LABEL org.opencontainers.image.source="https://github.com/Qolors/FeedCord"
LABEL org.opencontainers.image.source="https://github.com/morphy2k/rss-forwarder"

ENV PKG_CONFIG_ALLOW_CROSS=1

WORKDIR /usr/src/rss-forwarder

RUN wget https://github.com/morphy2k/rss-forwarder/archive/refs/tags/v${VERSION}.tar.gz \
&& tar -xvf v${VERSION}.tar.gz \
&& cd rss-forwarder-${VERSION} \
&& cargo install --path .

FROM gcr.io/distroless/cc-debian11

COPY --from=builder /usr/local/cargo/bin/rss-forwarder /usr/local/bin/rss-forwarder

CMD ["rss-forwarder", "/data/config.toml"]
5 changes: 5 additions & 0 deletions apps/rss-forwarder/ci/goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
# https://github.com/aelsabbahy/goss/blob/master/docs/manual.md#file
file:
/usr/local/bin/rss-forwarder:
exists: true
5 changes: 5 additions & 0 deletions apps/rss-forwarder/ci/latest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
version="$(curl -sX GET "https://api.github.com/repos/morphy2k/rss-forwarder/releases/latest" | jq --raw-output '.tag_name' 2>/dev/null)"
version="${version#*v}"
version="${version#*release-}"
printf "%s" "${version}"
11 changes: 11 additions & 0 deletions apps/rss-forwarder/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
app: rss-forwarder
base: false
semantic_versioning: false
channels:
- name: stable
platforms: ["linux/amd64", "linux/arm64"] # ["linux/amd64", "linux/arm64"]
stable: true
tests:
enabled: false
type: cli

0 comments on commit 25a0113

Please sign in to comment.