Prechádzať zdrojové kódy

Implement a post commit to deploy web content locally

DricomDragon 5 rokov pred
rodič
commit
6315af101d
1 zmenil súbory, kde vykonal 13 pridanie a 0 odobranie
  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