Skip to content

Commit

Permalink
Update hadolint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Nov 18, 2023
1 parent 35e6f69 commit 81c926a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,23 @@ jobs:
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'
uses: docker/bake-action@v4
with:
workdir: hadolint
push: true
push: ${{ github.event_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 != 'push'
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
Expand Down

0 comments on commit 81c926a

Please sign in to comment.