Skip to content

Update Dockerfile

Update Dockerfile #15

Workflow file for this run

name: Hadolint
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Hadolint
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
- name: Add comments to Pull Request
uses: actions/github-script@v6
if: github.event_name == 'pull_request'
with:
script: |
const output = `
#### Hadolint: \`${{ steps.hadolint.outcome }}\`
\`\`\`
${process.env.HADOLINT_RESULTS}
\`\`\`
`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})