Skip to content
Snippets Groups Projects
Commit f39a673b authored by François Grand's avatar François Grand
Browse files

fix(ci): index.html base href not modified in case of devel deployment to OVH

refs devel
parent afbe75b3
No related branches found
No related tags found
No related merge requests found
Pipeline #139810 passed
......@@ -123,7 +123,7 @@ deploy-ovh-dev:
- build
script:
# Copie de la branche / du tag
- ./scripts/deploy-version.sh prod $PROD_LOGIN $PROD_HOST $PROD_DEV_PATH
- ./scripts/deploy-version.sh prod-devel $PROD_LOGIN $PROD_HOST $PROD_DEV_PATH
deploy-prod:
stage: deploy-prod
......
......@@ -17,12 +17,16 @@ DIR="$4"
echo "$(basename $0): deploying version $VERSION in $LOGIN@$HOST:$DIR"
if [[ $VERSION == "prod" ]]; then
if [[ $VERSION == "prod" || $VERSION == "prod-devel" ]]; then
# Copie de la branche production
rsync -a --delete --exclude=cassiopee-releases -e "ssh -o StrictHostKeyChecking=no" dist/ ${LOGIN}@${HOST}:${DIR}/
# Modification du dossier base href
echo "updating index.html"
ssh $LOGIN@$HOST "sed -i 's:/cassiopee/stable/:/:g' $DIR/index.html"
if [[ $VERSION == "prod" ]]; then
ssh $LOGIN@$HOST "sed -i 's:/cassiopee/stable/:/:g' $DIR/index.html"
else
ssh $LOGIN@$HOST "sed -i 's:/cassiopee/devel/:/:g' $DIR/index.html"
fi
else
# Copie de la branche / du tag
rsync -a --delete --exclude=cassiopee-releases -e "ssh -o StrictHostKeyChecking=no" "dist/" "$LOGIN@$HOST:$DIR/$VERSION"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment