This commit is contained in:
parent
0319841c8e
commit
d5feb86da4
|
@ -1,24 +0,0 @@
|
|||
image: node:18
|
||||
cache:
|
||||
paths:
|
||||
- node_modules/
|
||||
|
||||
variables:
|
||||
RSYNC_SSH: ssh -o StrictHostKeyChecking=no -p 19022
|
||||
|
||||
before_script:
|
||||
- which ssh-agent || (apt-get update -y && apt-get install openssh-client -y )
|
||||
- which rsync || (apt-get update -y && apt-get install rsync -y)
|
||||
- eval $(ssh-agent -s)
|
||||
- ssh-add <(echo "$DEPLOY_SSH_KEY")
|
||||
|
||||
deploy:
|
||||
script:
|
||||
- yarn
|
||||
- yarn build
|
||||
- rsync -av --delete -e "$RSYNC_SSH" public/ "$DEPLOY_DESTINATION"
|
||||
environment:
|
||||
name: production
|
||||
url: https://handbook.kanthaus.online
|
||||
only:
|
||||
- master
|
Loading…
Reference in a new issue