Skip to content

Commit af6ae7e

Browse files
committed
metadata: add upstream labels for version detection
1 parent 28d376f commit af6ae7e

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

Containerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# --------------------------------------------------------------------------
66

77
ARG BASE_VERSION=15
8+
ARG UPSTREAM_URL="https://api.github.com/repos/rustmailer/bichon/releases/latest"
9+
ARG UPSTREAM_JQ=".tag_name"
10+
811
# --- Backend Builder Stage ---
912
FROM ghcr.io/daemonless/base:${BASE_VERSION} AS builder
1013

@@ -46,7 +49,9 @@ LABEL org.opencontainers.image.title="Bichon" \
4649
org.opencontainers.image.authors="daemonless" \
4750
io.daemonless.category="Utilities" \
4851
io.daemonless.port="15630" \
49-
io.daemonless.arch="${FREEBSD_ARCH}"
52+
io.daemonless.arch="${FREEBSD_ARCH}" \
53+
io.daemonless.upstream-url="${UPSTREAM_URL}" \
54+
io.daemonless.upstream-jq="${UPSTREAM_JQ}"
5055

5156
# Install runtime dependencies
5257
RUN pkg update && \

Containerfile.j2

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
ARG BASE_VERSION=15
2+
ARG UPSTREAM_URL="https://api.github.com/repos/rustmailer/bichon/releases/latest"
3+
ARG UPSTREAM_JQ=".tag_name"
4+
25
# --- Backend Builder Stage ---
36
FROM ghcr.io/daemonless/base:${BASE_VERSION} AS builder
47

@@ -42,7 +45,9 @@ LABEL org.opencontainers.image.title="{{ title }}" \
4245
{%- if ports %}
4346
io.daemonless.port="{{ ports[0].port }}" \
4447
{%- endif %}
45-
io.daemonless.arch="${FREEBSD_ARCH}"
48+
io.daemonless.arch="${FREEBSD_ARCH}" \
49+
io.daemonless.upstream-url="${UPSTREAM_URL}" \
50+
io.daemonless.upstream-jq="${UPSTREAM_JQ}"
4651

4752
# Install runtime dependencies
4853
RUN pkg update && \

0 commit comments

Comments
 (0)