Sign inSign up

inviz/shellcheck

By inviz

•Updated over 3 years ago

ShellCheck for CI that finds scripts to check automatically

Image
0

6.8K

inviz/shellcheck repository overview

⁠ShellCheck for CI

ShellCheck⁠ Docker⁠ image for CI that automatically finds scripts to check.

⁠Usage

⁠Shell
docker run --rm -tv "$(pwd):/source:ro" inviz/shellcheck
⁠Make
.PHONY: shellcheck
shellcheck:
	docker run --rm -tv "$(CURDIR):/source:ro" inviz/shellcheck
⁠GitLab CI
lint-shellcheck:
  stage: lint
  image:
    name: inviz/shellcheck
    entrypoint: ["sh", "-c"]
  script:
    - shellcheck-ci
⁠GitLab CI with JUnit report
lint-shellcheck:
  stage: lint
  image:
    name: inviz/shellcheck
    entrypoint: ["sh", "-c"]
  script:
    - shellcheck-ci --junit > shellcheck.xml
  artifacts:
    when: always
    paths:
      - shellcheck.xml
    reports:
      junit: shellcheck.xml

Copyright © 2019–2020 Arthur Khashaev⁠. See license⁠ for details.

Tag summary

Content type

Image

Digest

sha256:82fb10b89…

Size

14.1 MB

Last updated

over 3 years ago

docker pull inviz/shellcheck