build(image): set every OCI label on the production and development images

This commit is contained in:
peaklabs-dev
2026-11-02 00:06:48 +01:00
committed by GitHub
parent 2c71920c55
commit 9f21022732
3 changed files with 50 additions and 2 deletions
+2
View File
@@ -81,6 +81,7 @@ jobs:
run: |
{
echo "epoch=$(git log -1 --format=%ct)"
echo "created=$(TZ=UTC git log -1 --format=%cd --date=format-local:%Y-%m-%dT%H:%M:%SZ)"
echo "sha=$(git rev-parse HEAD)"
} >> "$GITHUB_OUTPUT"
@@ -100,6 +101,7 @@ jobs:
build-args: |
COOLIFY_VERSION=${{ needs.plan.outputs.coolify }}
SOURCE_DATE_EPOCH=${{ steps.args.outputs.epoch }}
CREATED=${{ steps.args.outputs.created }}
GIT_SHA=${{ steps.args.outputs.sha }}
- name: Upload the image
+22
View File
@@ -116,6 +116,28 @@ RUN mkdir -p /etc/nginx/conf.d && \
COPY --from=minio-client /usr/bin/mc /usr/bin/mc
RUN chmod +x /usr/bin/mc
ARG SERVERSIDEUP_PHP_VERSION
ARG COOLIFY_VERSION
ARG CREATED
ARG GIT_SHA
LABEL org.opencontainers.image.title="Coolify Development" \
org.opencontainers.image.description="The development image of Coolify, it runs the checkout that Docker Compose mounts into it." \
org.opencontainers.image.version="${COOLIFY_VERSION}" \
org.opencontainers.image.created="${CREATED}" \
org.opencontainers.image.revision="${GIT_SHA}" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.authors="coollabsio" \
org.opencontainers.image.vendor="coollabsio" \
org.opencontainers.image.url="https://coolify.io" \
org.opencontainers.image.source="https://github.com/coollabsio/coolify" \
org.opencontainers.image.documentation="https://github.com/coollabsio/coolify/blob/main/CONTRIBUTING.md" \
org.opencontainers.image.base.name="docker.io/serversideup/php:${SERVERSIDEUP_PHP_VERSION}" \
io.coolify.nginx.version="${NGINX_VERSION}" \
io.coolify.cloudflared.version="${CLOUDFLARED_VERSION}" \
io.coolify.postgresql-client.version="${POSTGRES_VERSION}" \
io.coolify.php-uv.version="${PHP_UV_VERSION}"
# Stay as root for s6 init so bind-mounted workspaces work even when the host
# tree is root-owned (CI, Jean, rootful Docker). PHP-FPM/nginx still run as
# www-data via their service configs. Do NOT set USER www-data here — that
+26 -2
View File
@@ -17,6 +17,12 @@ ARG PHP_UV_VERSION=0.3.0
ARG USER_ID=9999
ARG GROUP_ID=9999
# Set by the build workflow
ARG COOLIFY_VERSION
ARG SOURCE_DATE_EPOCH
ARG CREATED
ARG GIT_SHA
# =================================================================
# Stage 1: Composer dependencies
# =================================================================
@@ -220,10 +226,28 @@ RUN mkdir -p /etc/nginx/conf.d && \
COPY --from=minio-client /usr/bin/mc /usr/bin/mc
RUN chmod +x /usr/bin/mc
ARG SERVERSIDEUP_PHP_VERSION
ARG NODE_VERSION
ARG CREATED
ARG GIT_SHA
LABEL org.opencontainers.image.version="${COOLIFY_VERSION}" \
org.opencontainers.image.revision="${GIT_SHA}"
LABEL org.opencontainers.image.title="Coolify" \
org.opencontainers.image.description="An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers." \
org.opencontainers.image.version="${COOLIFY_VERSION}" \
org.opencontainers.image.created="${CREATED}" \
org.opencontainers.image.revision="${GIT_SHA}" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.authors="coollabsio" \
org.opencontainers.image.vendor="coollabsio" \
org.opencontainers.image.url="https://coolify.io" \
org.opencontainers.image.source="https://github.com/coollabsio/coolify" \
org.opencontainers.image.documentation="https://coolify.io/docs" \
org.opencontainers.image.base.name="docker.io/serversideup/php:${SERVERSIDEUP_PHP_VERSION}" \
io.coolify.nginx.version="${NGINX_VERSION}" \
io.coolify.node.version="${NODE_VERSION}" \
io.coolify.cloudflared.version="${CLOUDFLARED_VERSION}" \
io.coolify.postgresql-client.version="${POSTGRES_VERSION}" \
io.coolify.php-uv.version="${PHP_UV_VERSION}"
# Switch to non-root user
USER www-data