7
scripts/deploy.sh
Executable file
7
scripts/deploy.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
export $(cat .env | xargs)
|
||||
|
||||
cuddle_cli x start_deployment
|
||||
cuddle_cli x render_templates
|
||||
cuddle_cli x build_release
|
||||
cuddle_cli x push_release
|
||||
cuddle_cli x deploy_release
|
@@ -5,6 +5,8 @@ set -e
|
||||
echo "deploying image"
|
||||
deploymentrepo="$TMP/deployments"
|
||||
|
||||
cd $deploymentrepo
|
||||
cd "$deploymentrepo"
|
||||
|
||||
git add . && git commit -m "Added release $SERVICE: ${COMMIT_SHA:0:10}" && git pull && git push
|
||||
[[ -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
|
||||
|
Reference in New Issue
Block a user