diff options
author | Aaron Ball <nullspoon@iohq.net> | 2015-07-17 08:53:44 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2015-07-17 08:53:44 -0600 |
commit | e90492304b82b43c3be60558ab9551c505d0123a (patch) | |
tree | 08b962bc95c6a5d77c5436e599cc23b21d0ef938 | |
parent | b9cb88d8181a62e632b65cc5a7a09fe6fc85a378 (diff) | |
download | git-deploy-cache-e90492304b82b43c3be60558ab9551c505d0123a.tar.gz git-deploy-cache-e90492304b82b43c3be60558ab9551c505d0123a.tar.xz |
This variable contains the path underneath deploy for the cache pertinent to
the current push (eg: deploy_dir/repo_name/branch_name).
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | git-deploy-cache.sh | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -79,3 +79,5 @@ The variables made available by this function are... * **FILES_D**: List of **D**eleted files * **FILES_E**: List of all files **E**xisting in the commit, modified or new. Does not include deleted files. +* **CURRENT_CACHE**: Current working cache directory (eg: + */<deploydir>/<repo>/<branch>*) diff --git a/git-deploy-cache.sh b/git-deploy-cache.sh index 759c3f8..35ddb26 100755 --- a/git-deploy-cache.sh +++ b/git-deploy-cache.sh @@ -125,6 +125,9 @@ function main { # Set up global enviro variables that will be of use later enviro_setup ${oldrev} ${newrev} ${refname} + # The current cache directory being used + export WORKING_CACHE=${deploy_base}/${REPOSITORY}/${BRANCH} + log "Deployment triggered by ${newrev}" # Deploy a working copy of the repo so we have something to work on |