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
|
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}"
|
||||||
|
9
.github/workflows/ci.yaml
vendored
9
.github/workflows/ci.yaml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user