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
|
|
|
|
2023-06-04 14:56:16 +02:00
|
|
|
cd "$deploymentrepo"
|
2022-08-14 17:27:44 +02:00
|
|
|
|
2023-06-04 14:56:16 +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
|