Beta test of pull and push scripts

This commit is contained in:
Ric Harvey
2015-06-25 10:23:06 +00:00
parent b13602c7e7
commit b525568b72
4 changed files with 52 additions and 0 deletions

20
push Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
timestamp() {
date +"%D %T"
}
if [ -z "$GIT_EMAIL" ]; then
echo "You need to pass the \$GIT_EMAIL variable to the container for this to work"
exit
fi
if [ -z "$GIT_NAME" ]; then
echo "You need to pass the \$GIT_NAME variable to the container for this to work"
exit
fi
ts=$(timestamp)
cd /usr/share/nginx/html
git add *
git commit -a -m "push from container $ts"