Skip to content

Commit

Permalink
Update cinc-auditor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific authored Nov 22, 2023
1 parent 530f8bb commit c9a6ce9
Showing 1 changed file with 4 additions and 38 deletions.
42 changes: 4 additions & 38 deletions .github/workflows/cinc-auditor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: cinc/cinc-auditor
steps:
- uses: actions/checkout@v4

- name: Install QEMU static binaries
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}

- name: Build and push
uses: docker/bake-action@v4
- uses: boxcutter/container-build-publish-action@main
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
dockerhub-username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
dockerhub-password: ${{ secrets.CONTAINER_DESCRIPTION_PASSWORD }}
run-test-stage: false

0 comments on commit c9a6ce9

Please sign in to comment.