cuddle-rust-plan/scripts/deploy_release.sh

13 lines
282 B
Bash
Raw Permalink Normal View History

2022-08-14 17:27:44 +02:00
#!/bin/bash
set -e
2022-08-14 20:30:09 +02:00
echo "deploying image"
deploymentrepo="$TMP/deployments"
2022-08-14 17:27:44 +02:00
cd "$deploymentrepo"
2022-08-14 17:27:44 +02:00
[[ -z $(git status -s) ]] && (echo 'git repository is clean'; exit 0)
git add . && git commit --allow-empty -m "Added release $SERVICE: ${COMMIT_SHA:0:10}" && git pull && git push