Skip to content

Usenet streaming with a WebDAV server and a SABnzbd-compatible API

C#

chore: add source label to docker images.

nzbdav-dev4129e98be5e3
diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml
index 309bf852..2f3e834e 100644
--- a/.github/workflows/dependabot.yml
+++ b/.github/workflows/dependabot.yml
@@ -54,3 +54,4 @@ jobs:
tags: ${{ steps.set_vars.outputs.TAGS }}
build-args: |
NZBDAV_VERSION=${{ steps.set_vars.outputs.NZBDAV_VERSION }}
+ REPO_URL=https://github.com/${{ github.repository }}
diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml
index a5ae8c12..71aea82a 100644
--- a/.github/workflows/pre-release.yml
+++ b/.github/workflows/pre-release.yml
@@ -55,4 +55,5 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: ${{ steps.set_vars.outputs.TAGS }}
build-args: |
- NZBDAV_VERSION=${{ steps.set_vars.outputs.NZBDAV_VERSION }}
\ No newline at end of file
+ NZBDAV_VERSION=${{ steps.set_vars.outputs.NZBDAV_VERSION }}
+ REPO_URL=https://github.com/${{ github.repository }}
\ No newline at end of file
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 854249ee..dc350da6 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -109,4 +109,5 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: ${{ steps.set_vars.outputs.TAGS }}
build-args: |
- NZBDAV_VERSION=${{ steps.set_vars.outputs.NZBDAV_VERSION }}
\ No newline at end of file
+ NZBDAV_VERSION=${{ steps.set_vars.outputs.NZBDAV_VERSION }}
+ REPO_URL=https://github.com/${{ github.repository }}
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index d6ba7efa..61aa8ac8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,9 +25,12 @@ RUN dotnet publish -c Release -r linux-musl-${TARGETARCH} -o ./publish
# -------- Stage 3: Combined runtime image --------
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine
-WORKDIR /app
+# Label the image
+ARG REPO_URL
+LABEL org.opencontainers.image.source=${REPO_URL}
# Prepare environment
+WORKDIR /app
RUN mkdir /config \
&& apk add --no-cache nodejs npm libc6-compat shadow su-exec bash curl
@@ -44,6 +47,7 @@ COPY --from=backend-build /backend/publish ./backend
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
+# Set env variables
EXPOSE 3000
ARG NZBDAV_VERSION
ENV NZBDAV_VERSION=${NZBDAV_VERSION}