@@ -12,13 +12,16 @@ jobs:
1212 include :
1313 - name : servicecontrol
1414 project : ServiceControl
15- description : ServiceControl error instance
15+ title : ServiceControl
16+ description : Gather status, performance and monitoring data for multiple endpoints from a single location.
1617 - name : servicecontrol-audit
1718 project : ServiceControl.Audit
18- description : ServiceControl audit instance
19+ title : ServiceControl Audit Instance
20+ description : Provide valuable information about the message flow through a system.
1921 - name : servicecontrol-monitoring
2022 project : ServiceControl.Monitoring
21- description : ServiceControl monitoring instance
23+ title : ServiceControl Monitoring Instance
24+ description : Track the health of a distributed system.
2225 fail-fast : false
2326 steps :
2427 - name : Check for secrets
@@ -40,24 +43,44 @@ jobs:
4043 - name : Set up Docker Buildx
41444245 - name : Log in to GitHub container registry
43- run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
44- - name : Build & inspect image
45- env :
46- TAG_NAME : ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || env.MinVerVersion }}
47- run : |
48- docker buildx build --push --tag ghcr.io/particular/${{ matrix.name }}:${{ env.TAG_NAME }} \
49- --file src/${{ matrix.project }}/Dockerfile \
50- --build-arg VERSION=${{ env.MinVerVersion }} \
51- --annotation "index:org.opencontainers.image.title=${{ matrix.name }}" \
52- --annotation "index:org.opencontainers.image.description=${{ matrix.description }}" \
53- --annotation "index:org.opencontainers.image.created=$(date '+%FT%TZ')" \
54- --annotation "index:org.opencontainers.image.revision=${{ github.sha }}" \
55- --annotation "index:org.opencontainers.image.authors=Particular Software" \
56- --annotation "index:org.opencontainers.image.vendor=Particular Software" \
57- --annotation "index:org.opencontainers.image.version=${{ env.MinVerVersion }}" \
58- --annotation "index:org.opencontainers.image.source=https://github.com/${{ github.repository }}/tree/${{ github.sha }}" \
59- --annotation "index:org.opencontainers.image.url=https://hub.docker.com/r/particular/${{ matrix.name }}" \
60- --annotation "index:org.opencontainers.image.documentation=https://docs.particular.net/servicecontrol/" \
61- --annotation "index:org.opencontainers.image.base.name=mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-composite-extra" \
62- --platform linux/arm64,linux/amd64 .
63- docker buildx imagetools inspect ghcr.io/particular/${{ matrix.name }}:${{ env.TAG_NAME }}
46+ 47+ with :
48+ registry : ghcr.io
49+ username : ${{ github.actor }}
50+ password : ${{ secrets.GITHUB_TOKEN }}
51+ - name : Get current date
52+ id : date
53+ run : echo "date=$(date '+%FT%TZ')" >> $GITHUB_OUTPUT
54+ - name : Build and push image to GitHub container registry
55+ 56+ with :
57+ context : .
58+ push : true
59+ platforms : linux/amd64,linux/arm64
60+ sbom : true
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
85+ file : src/${{ matrix.project }}/Dockerfile
86+ tags : ghcr.io/particular/${{ matrix.name }}:${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || env.MinVerVersion }}
0 commit comments