This commit is contained in:
@@ -16,7 +16,8 @@ jobs:
|
|||||||
ssh -o StrictHostKeyChecking=no -i /root/.ssh/id_home root@home.mesdonneesadministratives.fr "
|
ssh -o StrictHostKeyChecking=no -i /root/.ssh/id_home root@home.mesdonneesadministratives.fr "
|
||||||
cd /opt/alapatch &&
|
cd /opt/alapatch &&
|
||||||
git fetch --all &&
|
git fetch --all &&
|
||||||
git reset --hard origin/master &&
|
# Correction ici : on force l'alignement sur origin/main
|
||||||
|
git reset --hard origin/main &&
|
||||||
docker build --no-cache -t alapatch-prod . &&
|
docker build --no-cache -t alapatch-prod . &&
|
||||||
if [ \$(docker ps -aq -f name=microkorg-editor) ]; then
|
if [ \$(docker ps -aq -f name=microkorg-editor) ]; then
|
||||||
docker stop microkorg-editor &&
|
docker stop microkorg-editor &&
|
||||||
@@ -24,3 +25,4 @@ jobs:
|
|||||||
fi &&
|
fi &&
|
||||||
docker run -d --restart unless-stopped -p 4321:4321 --name microkorg-editor alapatch-prod
|
docker run -d --restart unless-stopped -p 4321:4321 --name microkorg-editor alapatch-prod
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user