Skip to content

Lint output (run Hadolint on generated Dockerfiles). #17

Lint output (run Hadolint on generated Dockerfiles).

Lint output (run Hadolint on generated Dockerfiles). #17

Workflow file for this run

name: Lint output (run Hadolint on generated Dockerfiles).
on:
workflow_dispatch:
# pull_request:
# push:
# branches:
# - main
# This modifies the default permissions granted to `GITHUB_TOKEN`.
permissions:
contents: read
pull-requests: read
# The `concurrency` key ensures that only a single workflow in the same concurrency group will run at the same time. For more information, see "[AUTOTITLE](/actions/using-jobs/using-concurrency)."
# `concurrency.group` generates a concurrency group name from the workflow name and pull request information. The `||` operator is used to define fallback values.
# `concurrency.cancel-in-progress` cancels any currently running job or workflow in the same concurrency group.
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
lint_output:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04,] # , windows-2022, macos-12,]
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
persist-credentials: 'false'
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
- name: Install Hadolint
uses: jaxxstorm/[email protected]
with: # Grab the latest version
repo: hadolint/hadolint
tag: 'v2.12.0'
platform: 'linux'
arch: 'x86_64'
# - name: Install hadolint
# # curl --location --remote-header-name --remote-name https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 > hadolint
# run: curl --location --remote-header-name --remote-name https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Windows-x86_64.exe > $GITHUB_WORKSPACE\hadolint.exe
# # run: | chmod +x hadolint
- name: Install tox
run: pip install tox
# - name: Run tests
# # run: HADOLINT_EXECUTABLE=$GITHUB_WORKSPACE/hadolint.exe tox run -e hadolint-py311
# run: HADOLINT_EXECUTABLE=$GITHUB_WORKSPACE\hadolint.exe tox run -e hadolint-py311
- name: Run tests
run: tox run -e hadolint-py311