added dockerlint

This commit is contained in:
André Bauer 2020-02-26 22:51:22 +01:00
parent 8523fb5449
commit ca7a1fbb48
2 changed files with 11 additions and 3 deletions

View File

@ -5,12 +5,13 @@
set -o errexit set -o errexit
REPO_ROOT="$(git rev-parse --show-toplevel)"
TMP_FILE="$(mktemp)" TMP_FILE="$(mktemp)"
find "${REPO_ROOT}" -type f -name "*.sh" > "${TMP_FILE}" find . -type f -name "*.sh" > "${TMP_FILE}"
while read -r FILE; do while read -r FILE; do
echo lint "${FILE}" echo lint "${FILE}"
shellcheck -x "${FILE}" shellcheck -x "${FILE}"
done < "${TMP_FILE}" done < "${TMP_FILE}"
rm "${TMP_FILE}"

View File

@ -14,8 +14,15 @@ jobs:
with: with:
args: .github/lint-scripts.sh args: .github/lint-scripts.sh
lint-docker-files:
runs-on: ubuntu-latest
steps:
- name: lint zammad dockerfile
uses: brpaz/hadolint-action@master
with:
dockerfile: zammad/Dockerfile
install-docker-compose: install-docker-compose:
name: install-docker-compose
timeout-minutes: 30 timeout-minutes: 30
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: lint-bash-scripts needs: lint-bash-scripts