15 lines
370 B
Bash
Executable File
15 lines
370 B
Bash
Executable File
#!/bin/bash
|
|
|
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
|
|
git push origin "$BRANCH"
|
|
|
|
ssh ubuntu "
|
|
cd /home/yoge/Dev/doc_ai_backed &&
|
|
git checkout $BRANCH &&
|
|
git pull origin $BRANCH &&
|
|
docker compose -f docker-compose.infra.yml up -d --no-recreate || true &&
|
|
docker compose down &&
|
|
docker image rm doc_ai_backed-doc_ai:latest || true &&
|
|
docker compose up -d
|
|
" |