deploy 002

This commit is contained in:
Ludger Sicking 2025-05-21 10:24:39 +02:00
parent d057ac0b8b
commit 049cc80948
2 changed files with 4 additions and 3 deletions

View file

@ -35,7 +35,7 @@ steps:
- which grep
- ls -l $(which grep)
- grep -E ".+" Website/PROD/index.html
#- grep -E ".+" Website/PROD/index.html
#- grep -E ".+schon .+" Website/PROD/index.html
#lokal läuft $busybox grep -E 'schon' Website/PROD/index.html | ????
- if grep -E "Team vollständig" Website/PROD/index.html; then echo "Blog Teamseite"; else echo "Webseite Startseite"; fi
@ -84,7 +84,8 @@ steps:
- ssh-keyscan -H -p $SSH_PORT $SSH_HOST 2>/dev/null >> ~/.ssh/known_hosts
- chmod 600 ~/.ssh/known_hosts
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "touch $DOMAIN_FOLDER/Log/time_begin_copy_$(date +'%Y-%m-%d_%T')"
- scp -r -i ~/.ssh/deployKey -P $SSH_PORT Website/PROD/canva/* $SSH_USER@$SSH_HOST:$DOMAIN_FOLDER/$TARGET_PATH/
#- scp -r -i ~/.ssh/deployKey -P $SSH_PORT Website/PROD/canva/* $SSH_USER@$SSH_HOST:$DOMAIN_FOLDER/$TARGET_PATH/
- scp -r -i ~/.ssh/deployKey -P $SSH_PORT Website/PROD/* $SSH_USER@$SSH_HOST:$DOMAIN_FOLDER/$TARGET_PATH/
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "touch $DOMAIN_FOLDER/Log/time_end_copy_$(date +'%Y-%m-%d_%T')"
- name: log_end_time