added documentation to releaseNightly

This commit is contained in:
Bella 2020-04-29 17:50:50 -04:00
parent 06f2eb8b21
commit a28d7c1179
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
1 changed files with 21 additions and 3 deletions

View File

@ -1,5 +1,23 @@
#!/bin/bash
# REQUIREMENTS:
#
# ~/.profile:
# $GITHUB_RELEASE_ACCESS_TOKEN with repo:status, repo_deployment, public_repo
# $GITHUB_RELEASE_REPOSITORY="kami-blue/nightly-releases"
# $WEBHOOK= webhook url
#
# ~/kamiblue
# git clone git@github.com:kami-blue/nightly-releases.git
# git remote add kamiblue git@github.com:kami-blue/client.git
#
# ~/Java JDK 8 is also required
#
# ~/https://github.com/buildkite/github-release/releases is also required
#
# crontab -e
# 0 0,12 * * * /home/user/releaseNightly >/tmp/cron1.log 2>&1
cd ~/kamiblue/
export COMMIT_LAST="$(git log --format=%h -1)"
export COMMIT_LAST_FULL="$(git log --format=%H -1)"
@ -11,10 +29,10 @@ git push --force origin HEAD:master
export COMMIT_TRIM="$(git log --format=%h -1)"
if [ "$COMMIT_LAST" == "$COMMIT_TRIM" ]; then
if [[ "$COMMIT_LAST" == "$COMMIT_TRIM" ]]; then
exit 0
fi
rm -rf build/libs
./scripts/preHook.sh