From 779c034d11a6698a5b812db30431120cb4ffe526 Mon Sep 17 00:00:00 2001 From: Mischa Taylor Date: Sat, 18 Nov 2023 19:44:24 -0500 Subject: [PATCH] Migrate improvements --- .github/workflows/cinc-auditor.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cinc-auditor.yml b/.github/workflows/cinc-auditor.yml index e77feb4..64f3103 100644 --- a/.github/workflows/cinc-auditor.yml +++ b/.github/workflows/cinc-auditor.yml @@ -33,12 +33,17 @@ jobs: password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }} - name: Build and push - if: github.event_name != 'pull_request' uses: docker/bake-action@v4 with: workdir: cinc/cinc-auditor push: ${{ github.even_name != 'pull_request' }} + - name: Get the image description + if: github.event_name != 'pull_request' + id: image_description + run: | + echo "image_description=$(docker buildx bake --print 2> /dev/null | jq -r '.target.release.labels."org.opencontainers.image.description"')" >> $GITHUB_ENV + - name: Update Docker Hub Description if: github.event_name != 'pull_request' uses: peter-evans/dockerhub-description@v3 @@ -46,5 +51,6 @@ jobs: username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }} password: ${{ secrets.CONTAINER_DESCRIPTION_PASSWORD }} repository: boxcutter/cinc-auditor + short-description: ${{ env.image_description }} # short-description: ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.description'] }} readme-filepath: cinc/cinc-auditor/README.md