rss2email: Update to latest HEAD, move to Quadlet
This commit is contained in:
parent
e704f007ef
commit
7140c3b90e
|
@ -1,7 +1,7 @@
|
|||
FROM docker.io/golang:1.22-bookworm@sha256:d996c645c9934e770e64f05fc2bc103755197b43fd999b3aa5419142e1ee6d78 AS builder
|
||||
ARG VERSION=3.2 # renovate: datasource=github-releases depName=skx/rss2email extractVersion=^release-(?<version>.*)$
|
||||
ARG VERSION=aa3296fcc2883c345d3581ac670f652b2badedb5
|
||||
|
||||
RUN GOBIN=/build/usr/bin go install github.com/skx/rss2email@release-${VERSION}
|
||||
RUN GOBIN=/build/usr/bin go install github.com/skx/rss2email@${VERSION}
|
||||
|
||||
FROM docker.io/debian:bookworm-slim@sha256:ccb33c3ac5b02588fc1d9e4fc09b952e433d0c54d8618d0ee1afadf1f3cf2455
|
||||
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommends \
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=RSS Feed to Email
|
||||
Wants=container-build@%N.service container-volume@%N.service postfix.service
|
||||
After=container-build@%N.service container-volume@%N.service postfix.service
|
||||
|
||||
[Container]
|
||||
ContainerName=%N
|
||||
EnvironmentFile=%E/coreos-home-server/%N/%N.env
|
||||
Image=localhost/%N:latest
|
||||
Network=internal
|
||||
Volume=%E/coreos-home-server/%N/service/feeds:/etc/%N/feeds.d:z,ro
|
||||
Volume=%N:/var/lib/%N:z
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,16 +0,0 @@
|
|||
[Unit]
|
||||
Description=RSS Feed to Email
|
||||
Wants=container-build@%N.service postfix.service
|
||||
After=container-build@%N.service postfix.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
SyslogIdentifier=%N
|
||||
ExecStart=/bin/podman run --replace --rm --name %N --net internal \
|
||||
--env-file %E/coreos-home-server/%N/%N.env \
|
||||
--volume %E/coreos-home-server/%N/service/feeds:/etc/%N/feeds.d:z,ro \
|
||||
--volume %N:/var/lib/%N:z \
|
||||
localhost/%N:latest
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue