Skip to content

Commit

Permalink
Update image labels
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsimons committed Jan 22, 2025
1 parent 1ffcc45 commit 0161423
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,8 @@ jobs:
docker buildx build --push --tag ghcr.io/particular/servicecontrol-masstransit-connector:${{ env.TAG_NAME }} \
--file src/ServiceControl.Connector.MassTransit.Host/Dockerfile \
--build-arg VERSION=${{ env.MinVerVersion }} \
--annotation "index:org.opencontainers.image.title=ServiceControl.MassTransit.Connector" \
--annotation "index:org.opencontainers.image.description=MassTransit Connector for ServiceControl" \
--annotation "index:org.opencontainers.image.created=$(date '+%FT%TZ')" \
--annotation "index:org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "index:org.opencontainers.image.authors=Particular Software" \
--annotation "index:org.opencontainers.image.vendor=Particular Software" \
--annotation "index:org.opencontainers.image.version=${{ env.MinVerVersion }}" \
--annotation "index:org.opencontainers.image.source=https://github.com/Particular/ServiceControl.Connector.MassTransit/tree/${{ github.sha }}" \
--annotation "index:org.opencontainers.image.url=https://hub.docker.com/r/particular/servicecontrol-masstransit-connector" \
--annotation "index:org.opencontainers.image.documentation=https://docs.particular.net/servicecontrol/" \
--annotation "index:org.opencontainers.image.base.name=mcr.microsoft.com/dotnet/runtime:8.0-noble-chiseled" \
--build-arg SHA=${{ github.sha }} \
--build-arg CREATED=$(date '+%FT%TZ') \
--platform linux/arm64,linux/amd64 .
docker buildx imagetools inspect ghcr.io/particular/servicecontrol-masstransit-connector:${{ env.TAG_NAME }}
- name: Deploy
Expand Down
22 changes: 14 additions & 8 deletions src/ServiceControl.Connector.MassTransit.Host/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,22 @@ RUN dotnet publish src/ServiceControl.Connector.MassTransit.Host/ServiceControl.

# Runtime image
FROM mcr.microsoft.com/dotnet/runtime:8.0-noble-chiseled
ARG VERSION
ARG VERSION=0.0.1
ARG SHA=unknown
ARG CREATED=2000-01-01T00:00:00Z
WORKDIR /app

LABEL org.opencontainers.image.source=https://github.com/Particular/ServiceControl.Connector.MassTransit \
org.opencontainers.image.authors="Particular Software" \
org.opencontainers.image.url=https://github.com/Particular/ServiceControl.Connector.MassTransit \
org.opencontainers.image.documentation=https://github.com/Particular/ServiceControl.Connector.MassTransit \
org.opencontainers.image.version=$VERSION \
org.opencontainers.image.title=ServiceControl.Connector.MassTransit \
org.opencontainers.image.description="ServiceControl MassTransit connector"
LABEL org.opencontainers.image.source=https://github.com/Particular/ServiceControl.Connector.MassTransit/tree/$SHA
LABEL org.opencontainers.image.authors="Particular Software"
LABEL org.opencontainers.image.vendor="Particular Software"
LABEL org.opencontainers.image.url=https://hub.docker.com/r/particular/servicecontrol-masstransit-connector
LABEL org.opencontainers.image.documentation=https://hub.docker.com/r/particular/servicecontrol-masstransit-connector
LABEL org.opencontainers.image.version=$VERSION
LABEL org.opencontainers.image.revision=$SHA
LABEL org.opencontainers.image.created=$CREATED
LABEL org.opencontainers.image.title="MassTransit Connector for ServiceControl"
LABEL org.opencontainers.image.description="An extension to ServiceControl that adds support for processing MassTransit failures with the Particular Platform."
LABEL org.opencontainers.image.base.name=mcr.microsoft.com/dotnet/runtime:8.0-noble-chiseled

COPY --from=build ./build /app

Expand Down

0 comments on commit 0161423

Please sign in to comment.