added dockerlint
This commit is contained in:
parent
8523fb5449
commit
ca7a1fbb48
5
.github/lint-scripts.sh
vendored
5
.github/lint-scripts.sh
vendored
@ -5,12 +5,13 @@
|
||||
|
||||
set -o errexit
|
||||
|
||||
REPO_ROOT="$(git rev-parse --show-toplevel)"
|
||||
TMP_FILE="$(mktemp)"
|
||||
|
||||
find "${REPO_ROOT}" -type f -name "*.sh" > "${TMP_FILE}"
|
||||
find . -type f -name "*.sh" > "${TMP_FILE}"
|
||||
|
||||
while read -r FILE; do
|
||||
echo lint "${FILE}"
|
||||
shellcheck -x "${FILE}"
|
||||
done < "${TMP_FILE}"
|
||||
|
||||
rm "${TMP_FILE}"
|
||||
|
9
.github/workflows/ci.yaml
vendored
9
.github/workflows/ci.yaml
vendored
@ -14,8 +14,15 @@ jobs:
|
||||
with:
|
||||
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:
|
||||
name: install-docker-compose
|
||||
timeout-minutes: 30
|
||||
runs-on: ubuntu-latest
|
||||
needs: lint-bash-scripts
|
||||
|
Loading…
Reference in New Issue
Block a user