This commit is contained in:
parent
54cfd2e6ea
commit
0d5413039a
38
.drone.yml
38
.drone.yml
@ -129,44 +129,8 @@ volumes:
|
|||||||
host:
|
host:
|
||||||
path: /drone/volume/mkdocs_cache/gitlab_notification
|
path: /drone/volume/mkdocs_cache/gitlab_notification
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: deploy-develop-docs-site
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- docs-deploy
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build site
|
|
||||||
image: git.struchkov.dev/upagge/mkdocs-material-insiders:latest
|
|
||||||
environment:
|
|
||||||
SSH_DEPLOY_KEY:
|
|
||||||
from_secret: SSH_DEPLOY_KEY
|
|
||||||
SSH_DEPLOY_HOST:
|
|
||||||
from_secret: SSH_DEPLOY_HOST
|
|
||||||
SSH_DEPLOY_PORT:
|
|
||||||
from_secret: SSH_DEPLOY_PORT
|
|
||||||
SSH_DEPLOY_PATH:
|
|
||||||
from_secret: SSH_DEPLOY_PATH
|
|
||||||
SSH_DEPLOY_USER:
|
|
||||||
from_secret: SSH_DEPLOY_USER
|
|
||||||
commands:
|
|
||||||
- eval $(ssh-agent -s)
|
|
||||||
- mkdir -p ~/.ssh
|
|
||||||
- echo "$SSH_DEPLOY_KEY" >> ~/.ssh/id_rsa
|
|
||||||
- chmod 700 ~/.ssh
|
|
||||||
- chmod 600 ~/.ssh/id_rsa
|
|
||||||
- ssh-keyscan -p $SSH_DEPLOY_PORT $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts
|
|
||||||
- chmod 644 ~/.ssh/known_hosts
|
|
||||||
- scp -r -P $SSH_DEPLOY_PORT ./gitlab-notification $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH
|
|
||||||
|
|
||||||
image_pull_secrets:
|
|
||||||
- DOCKER_AUTH
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 3c5571db9fadbd17a08aab8822828acf29f49ea480ccf7e90e0a0e19afe2b1aa
|
hmac: fcd23a173d0a823ff39f9efe454d936476d49f03840034af7dd2c671571004d4
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user