Skip to content

Apply exit code to hadolint.sh - #50

Merged
lorenzo merged 1 commit into
hadolint:masterfrom
paulbarton90:check_exit_status
Mar 24, 2022
Merged

lorenzo merged 1 commit into
hadolint:masterfrom
paulbarton90:check_exit_status

Conversation

@paulbarton90

Copy link
Copy Markdown
Contributor

Exiting with an exit code of 1 marks the job in github actions as a fail properly. This should help to fix #48. I have noticed that you need to explicitly add docker.io to the trusted registries when running the github action. I updated the testing action to run with the following configuration:

steps:
  - uses: actions/checkout@v2 
  - uses: hadolint/hadolint-action@v1.6.0
    with:
      dockerfile: Dockerfile
      trusted-registries: "docker.io"

@lorenzo

lorenzo commented Mar 24, 2022

Copy link
Copy Markdown
Member

thanks!

@lorenzo
lorenzo merged commit 2bcb99c into hadolint:master Mar 24, 2022
@paulbarton90
paulbarton90 deleted the check_exit_status branch March 24, 2022 16:02
@offa

offa commented Mar 24, 2022

Copy link
Copy Markdown
Contributor

Thank you!

@paulbarton90

Copy link
Copy Markdown
Contributor Author

No problem. I believe the "trusted-registries" part is also fixed so is not longer required when running in the action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reported issues wont fail the build

3 participants