export latest commit variable (#2645)

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
This commit is contained in:
Ali Abdalla 2022-11-14 22:17:33 +01:00 committed by GitHub
parent 06353ca939
commit 7b44734b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ if grep -q "Already up to date." /tmp/git_changes.txt; then
echo "NO CHANGES"
else
echo "Reloading..."
LATEST_COMMIT=$(git log -1 --format="%H")
export LATEST_COMMIT=$(git log -1 --format="%H")
docker-compose build
docker-compose up -d
fi