mirror of
https://github.com/basecamp/once-campfire.git
synced 2025-10-26 02:33:54 +09:00
chore: use build arg for image description
This commit is contained in:
parent
99e6e46b04
commit
8608ba2520
2
.github/workflows/publish-image.yml
vendored
2
.github/workflows/publish-image.yml
vendored
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user