kleine Anpassungen
u. a. an aktuelle Ordnerstruktur
This commit is contained in:
parent
879b4095f7
commit
94044dd6af
|
@ -2,7 +2,7 @@ when:
|
|||
- branch: main
|
||||
event: push
|
||||
path:
|
||||
include: ['sb/**']
|
||||
include: ['Website/**']
|
||||
on_empty: false
|
||||
|
||||
steps:
|
||||
|
@ -14,8 +14,12 @@ steps:
|
|||
- name: build_by_hugo
|
||||
image: hugomods/hugo
|
||||
commands:
|
||||
- mkdir Website/PROD
|
||||
- hugo version
|
||||
- hugo -s sb --logLevel info
|
||||
- hugo -s Website -d PROD --logLevel debug
|
||||
- grep "zielt FOERBICO auf die Vernetzung" Website/PROD/index.html # enthält index.html auch den Inhalt der Startseite?
|
||||
- grep localhost Website/PROD/index.html # hat sich beim build ein Fehler eingeschlichen?
|
||||
- grep -E 'href.+favicon.ico' Website/PROD/index.html | cut -d= -f3 # baseURL ausgeben
|
||||
|
||||
- name: copy_to_server
|
||||
image: alpine
|
||||
|
@ -40,6 +44,11 @@ steps:
|
|||
- chmod 600 ~/.ssh/deployKey
|
||||
- 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 sb/public/* $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')"
|
||||
- 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/* $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
|
||||
image: alpine
|
||||
commands:
|
||||
- date -I'seconds'
|
||||
|
|
Loading…
Reference in a new issue