zuul-jobs/roles/hadolint/tasks/main.yaml
Radosław Piliszek f776e050d7 [hadolint] Exclude certain version-pinning rules
as they are not actually best practices.

Change-Id: I82a39152e7cf2936d05266b92f875e674cea8aae
2024-05-27 11:33:04 +02:00

16 lines
475 B
YAML

- name: Lint Dockerfile with Hadolint
# NOTE(rpiliszek): We are excluding rules that force version pinning in distribution package managers.
# These rules actually do *not* follow the best practices of Dockerfile writing.
ansible.builtin.command: >-
hadolint
--ignore DL3008
--ignore DL3018
--ignore DL3033
--ignore DL3037
--ignore DL3041
{{ item }}
args:
chdir: "{{ zuul_work_dir }}"
changed_when: false
loop: "{{ dockerfiles }}"