Merge pull request #462 from nhsx/stats-update-1695618074 #660
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image | |
on: [push] | |
jobs: | |
docker-lint: | |
runs-on: ubuntu-latest | |
container: hadolint/hadolint:latest-debian | |
steps: | |
- uses: actions/checkout@v2 | |
- name: hadolint on all Dockerfiles | |
run: | | |
find infrastructure/container -name Dockerfile | xargs -I{} sh -c "echo Checking {}; hadolint {}" | |
find dashboard/ -name Dockerfile | xargs -I{} sh -c "echo Checking {}; hadolint {}" | |
- name: shellcheck on container scripts | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
apt-get update && apt-get install -qy shellcheck | |
find infrastructure/container -name "*.sh" | xargs -I{} sh -c "echo Checking {}; shellcheck {}" |