blob: c301a89b23fb7bdef8ba9fe040473e6a63b829f6 (
plain) (
tree)
|
|
#!/usr/bin/env bash
function getHeadRev {
git rev-parse HEAD
}
target_commit="$(getHeadRev)"
running_commit=$(clever status | grep running | sed 's/^.*Commit: //' | sed 's/)$//')
if [ "${running_commit}" != "${target_commit}" ]; then
echo "Deploying commit ${target_commit}"
clever deploy --force
else
echo "${target_commit} is already deployed, nothing to do"
fi
|