chore: use build arg for image description

This commit is contained in:
Alexander Nicholson 4584443+DragonStuff@users.noreply.github.com
2025-09-05 09:56:42 +02:00
parent 99e6e46b04
commit 8608ba2520
2 changed files with 4 additions and 3 deletions

View File

@@ -22,7 +22,6 @@ permissions:
attestations: write
env:
# Static metadata; safe for forks
IMAGE_DESCRIPTION: Campfire is a web-based chat application with multiple rooms, direct messages, file attachments with previews, search, web push notifications, @mentions, and bot integrations. Single-tenant; production-ready image with web app, background jobs, caching, file serving, and SSL.
SOURCE_URL: https://github.com/${{ github.repository }}
@@ -93,6 +92,7 @@ jobs:
file: Dockerfile
build-args: |
OCI_SOURCE=${{ env.SOURCE_URL }}
OCI_DESCRIPTION=${{ env.IMAGE_DESCRIPTION }}
platforms: ${{ matrix.platform }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}

View File

@@ -46,9 +46,10 @@ RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
FROM base
# Image metadata
LABEL org.opencontainers.image.description="Campfire is a web-based chat application with multiple rooms, direct messages, file attachments with previews, search, web push notifications, @mentions, and bot integrations. Single-tenant; production-ready image with web app, background jobs, caching, file serving, and SSL."
ARG OCI_DESCRIPTION
LABEL org.opencontainers.image.description="${OCI_DESCRIPTION}"
ARG OCI_SOURCE
LABEL org.opencontainers.image.source=${OCI_SOURCE}
LABEL org.opencontainers.image.source="${OCI_SOURCE}"
LABEL org.opencontainers.image.licenses="MIT"
# Run and own only the runtime files as a non-root user for security