···273273 # The inspection output will show the platforms and tags associated with the manifest list.
274274 id: inspect
275275 run: |
276276- docker buildx imagetools inspect '${{ env.GHCR_IMAGE }}:${{ steps.meta.outputs.version }}'
277277-278278- clean:
279279- # This job cleans up untagged/old tags, since these are private images and I won't be referencing old tags.
280280- name: Cleanup old tags
281281- runs-on: ubuntu-latest
282282- permissions:
283283- packages: write
284284-285285- needs:
286286- - merge
287287- # Depend on the merge job to ensure the image is built before cleanup.
288288- steps:
289289- - name: Cleanup untagged images
290290- # This step downloads the digest files uploaded in the build job.
291291- # It uses the actions/download-artifact action to download the artifacts with the pattern digests-*.
292292- # The downloaded files are merged into the /tmp/digests directory.
293293- uses: quartx-analytics/ghcr-cleaner@v1
294294- with:
295295- owner-type: user
296296- token: ${{ github.token }}
297297- repository_owner: ${{ github.repository_owner }}
298298- repository-name: ${{ github.repository }}
299299- delete-untagged: true
300300- keep-at-most: 5276276+ docker buildx imagetools inspect '${{ env.GHCR_IMAGE }}:${{ steps.meta.outputs.version }}'