-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from LilDrunkenSmurf/feat/add-rss-notifier
Feat: Add rss-forwarder
- Loading branch information
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |