Remove the image build and consolidate operational code under scripts
This commit is contained in:
77 files changed
+586
-260607
No files matched your search
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# apex commons pre-commit: lint staged docker-compose files.
|
||||
if [[ -n "${APEX_COMMONS:-}" ]]; then
|
||||
APEX_CMD="$APEX_COMMONS/apex"
|
||||
else
|
||||
APEX_CMD="$(git rev-parse --show-toplevel)/commons/apex"
|
||||
[[ -x "$APEX_CMD" ]] || APEX_CMD="$(git rev-parse --show-toplevel)/apex" # standalone commons repo
|
||||
fi
|
||||
"$APEX_CMD" util/lint-docker-compose --hook || { echo "[pre-commit] Aborting: apex util/lint-docker-compose failed."; exit 1; }
|
||||
Reference in new issue
Block a user