Skip to content

Commit

Permalink
Update cinc-auditor workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Nov 18, 2023
1 parent 91c10ed commit 7c34ccf
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/cinc_auditor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,40 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: polymathrobotics/hadolint

- 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 == 'push'
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
if: github.event_name == 'push'
if: github.event_name != 'pull_request'
uses: docker/bake-action@v4
with:
workdir: hadolint
push: true
push: ${{ github.even_name != 'pull_request' }}
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
- name: Update Docker Hub Description
if: github.event_name == 'push'
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: ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.description'] }}

0 comments on commit 7c34ccf

Please sign in to comment.