Skip to content

Commit

Permalink
Migrate improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Nov 19, 2023
1 parent d1b2063 commit 779c034
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/cinc-auditor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,24 @@ 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
with:
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

0 comments on commit 779c034

Please sign in to comment.