cuddle-rust-plan/scripts/deploy_release.sh
kjuulh e8f2cdffae
fix: deploy release
Signed-off-by: kjuulh <contact@kjuulh.io>
2023-06-04 14:56:16 +02:00

13 lines
282 B
Bash
Executable File

#!/bin/bash
set -e
echo "deploying image"
deploymentrepo="$TMP/deployments"
cd "$deploymentrepo"
[[ -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