Переглянути джерело

Implement a post commit to deploy web content locally

DricomDragon 5 роки тому
батько
коміт
6315af101d
1 змінених файлів з 13 додано та 0 видалено
  1. 13 0
      ci/githooks/post-commit

+ 13 - 0
ci/githooks/post-commit

@@ -0,0 +1,13 @@
+#!/usr/bin/fish
+
+function ech --description 'Echo with prefix'
+	echo '[post-commit]' $argv
+end
+
+eval ci/install-web-files.fish
+
+if test $status -ne 0
+	ech 'Problem while running installation.'
+else
+	ech 'Web content correctly deployed.'
+end