@@ -20,3 +20,5 @@ scripts:
|
|||||||
type: shell
|
type: shell
|
||||||
push_release:
|
push_release:
|
||||||
type: shell
|
type: shell
|
||||||
|
deploy:
|
||||||
|
type: shell
|
||||||
|
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"
|
echo "deploying image"
|
||||||
deploymentrepo="$TMP/deployments"
|
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