Skip to content

PeterDaveHello/docker-shellcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized ShellCheck

PRs Welcome Docker Hub pulls

Docker Hub badge

About ShellCheck

A static analysis tool for shell scripts, homepage and repository below:

Please note that this Docker image repository is not part of the ShellCheck project.

Available image tags

See tags page on Docker Hub

Usage

Command line

SHELLCHECK_VERSION=0.7.1
docker run --rm -it -v `pwd`:/scripts peterdavehello/shellcheck:$SHELLCHECK_VERSION shellcheck /scripts/script.sh

In GitLab CI

shellcheck:
  stage: test
  image: peterdavehello/shellcheck:0.7.1
  only:
    changes:
      - "**/*.bash"
  before_script:
    - shellcheck --version
  script:
    - find . -name "*.sh" | xargs -n 1 shellcheck --color=always
  tags:
    - docker