Skip to content

Commit 14c63fd

Browse files
committed
setting both annotations
1 parent 986397c commit 14c63fd

File tree

4 files changed

+30
-50
lines changed

4 files changed

+30
-50
lines changed

.github/workflows/build-containers.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@ jobs:
1212
include:
1313
- name: servicecontrol
1414
project: ServiceControl
15+
title: ServiceControl
16+
description: Gather status, performance and monitoring data for multiple endpoints from a single location.
1517
- name: servicecontrol-audit
1618
project: ServiceControl.Audit
19+
title: ServiceControl Audit Instance
20+
description: Provide valuable information about the message flow through a system.
1721
- name: servicecontrol-monitoring
1822
project: ServiceControl.Monitoring
23+
title: ServiceControl Monitoring Instance
24+
description: Track the health of a distributed system.
1925
fail-fast: false
2026
steps:
2127
- name: Check for secrets
@@ -52,9 +58,29 @@ jobs:
5258
push: true
5359
platforms: linux/amd64,linux/arm64
5460
sbom: true
55-
build-args: |
56-
VERSION=${{ env.MinVerVersion }}
57-
SHA=${{ github.sha }}
58-
CREATED=${{ steps.date.outputs.date }}
61+
labels: |
62+
org.opencontainers.image.source=https://github.com/Particular/ServiceControl/tree/${{ github.sha }}
63+
org.opencontainers.image.authors="Particular Software"
64+
org.opencontainers.image.vendor="Particular Software"
65+
org.opencontainers.image.url=https://hub.docker.com/r/particular/${{ matrix.name }}
66+
org.opencontainers.image.documentation=https://docs.particular.net/servicecontrol/
67+
org.opencontainers.image.version=${{ env.MinVerVersion }}
68+
org.opencontainers.image.revision=${{ github.sha }}
69+
org.opencontainers.image.created=${{ steps.date.outputs.date }}
70+
org.opencontainers.image.title=${{ matrix.title }}
71+
org.opencontainers.image.description=${{ matrix.description }}
72+
org.opencontainers.image.base.name=mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-composite-extra
73+
annotations: |
74+
index:org.opencontainers.image.source=https://github.com/Particular/ServiceControl/tree/${{ github.sha }}
75+
index:org.opencontainers.image.authors="Particular Software"
76+
index:org.opencontainers.image.vendor="Particular Software"
77+
index:org.opencontainers.image.url=https://hub.docker.com/r/particular/${{ matrix.name }}
78+
index:org.opencontainers.image.documentation=https://docs.particular.net/servicecontrol/
79+
index:org.opencontainers.image.version=${{ env.MinVerVersion }}
80+
index:org.opencontainers.image.revision=${{ github.sha }}
81+
index:org.opencontainers.image.created=${{ steps.date.outputs.date }}
82+
index:org.opencontainers.image.title=${{ matrix.title }}
83+
index:org.opencontainers.image.description=${{ matrix.description }}
84+
index:org.opencontainers.image.base.name=mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-composite-extra
5985
file: src/${{ matrix.project }}/Dockerfile
6086
tags: ghcr.io/particular/${{ matrix.name }}:${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || env.MinVerVersion }}

src/ServiceControl.Audit/Dockerfile

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,8 @@ RUN dotnet publish src/HealthCheckApp/HealthCheckApp.csproj --arch $TARGETARCH -
1010

1111
# Runtime image
1212
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-composite-extra
13-
ARG VERSION
14-
ARG SHA=unknown
15-
ARG CREATED=2000-01-01T00:00:00Z
1613
WORKDIR /app
1714

18-
LABEL org.opencontainers.image.source=https://github.com/Particular/ServiceControl/tree/$SHA
19-
LABEL org.opencontainers.image.authors="Particular Software"
20-
LABEL org.opencontainers.image.vendor="Particular Software"
21-
LABEL org.opencontainers.image.url=https://hub.docker.com/r/particular/servicecontrol-audit
22-
LABEL org.opencontainers.image.documentation=https://docs.particular.net/servicecontrol/
23-
LABEL org.opencontainers.image.version=$VERSION
24-
LABEL org.opencontainers.image.revision=$SHA
25-
LABEL org.opencontainers.image.created=$CREATED
26-
LABEL org.opencontainers.image.title="ServiceControl Audit Instance"
27-
LABEL org.opencontainers.image.description="Provide valuable information about the message flow through a system."
28-
LABEL org.opencontainers.image.base.name=mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-composite-extra
29-
3015
EXPOSE 44444
3116

3217
COPY --from=build /deploy/Particular.ServiceControl.Audit /app

src/ServiceControl.Monitoring/Dockerfile

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,8 @@ RUN dotnet publish src/HealthCheckApp/HealthCheckApp.csproj --arch $TARGETARCH -
1010

1111
# Runtime image
1212
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-composite-extra
13-
ARG VERSION
14-
ARG SHA=unknown
15-
ARG CREATED=2000-01-01T00:00:00Z
1613
WORKDIR /app
1714

18-
LABEL org.opencontainers.image.source=https://github.com/Particular/ServiceControl/tree/$SHA
19-
LABEL org.opencontainers.image.authors="Particular Software"
20-
LABEL org.opencontainers.image.vendor="Particular Software"
21-
LABEL org.opencontainers.image.url=https://hub.docker.com/r/particular/servicecontrol-monitoring
22-
LABEL org.opencontainers.image.documentation=https://docs.particular.net/servicecontrol/
23-
LABEL org.opencontainers.image.version=$VERSION
24-
LABEL org.opencontainers.image.revision=$SHA
25-
LABEL org.opencontainers.image.created=$CREATED
26-
LABEL org.opencontainers.image.title="ServiceControl Monitoring Instance"
27-
LABEL org.opencontainers.image.description="Track the health of a distributed system."
28-
LABEL org.opencontainers.image.base.name=mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-composite-extra
29-
3015
EXPOSE 33633
3116

3217
COPY --from=build /deploy/Particular.ServiceControl.Monitoring /app

src/ServiceControl/Dockerfile

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,8 @@ RUN dotnet publish src/HealthCheckApp/HealthCheckApp.csproj --arch $TARGETARCH -
1010

1111
# Runtime image
1212
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-composite-extra
13-
ARG VERSION
14-
ARG SHA=unknown
15-
ARG CREATED=2000-01-01T00:00:00Z
1613
WORKDIR /app
1714

18-
LABEL org.opencontainers.image.source=https://github.com/Particular/ServiceControl/tree/$SHA
19-
LABEL org.opencontainers.image.authors="Particular Software"
20-
LABEL org.opencontainers.image.vendor="Particular Software"
21-
LABEL org.opencontainers.image.url=https://hub.docker.com/r/particular/servicecontrol
22-
LABEL org.opencontainers.image.documentation=https://docs.particular.net/servicecontrol/
23-
LABEL org.opencontainers.image.version=$VERSION
24-
LABEL org.opencontainers.image.revision=$SHA
25-
LABEL org.opencontainers.image.created=$CREATED
26-
LABEL org.opencontainers.image.title="ServiceControl"
27-
LABEL org.opencontainers.image.description="Gather status, performance and monitoring data for multiple endpoints from a single location."
28-
LABEL org.opencontainers.image.base.name=mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-composite-extra
29-
30-
3115
EXPOSE 33333
3216

3317
COPY --from=build /deploy/Particular.ServiceControl /app

0 commit comments

Comments
 (0)