This commit is contained in:
parent
22f4fedaa8
commit
a9c0768383
34
.drone.yml
Normal file
34
.drone.yml
Normal file
@ -0,0 +1,34 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: car4s
|
||||
|
||||
server:
|
||||
host:
|
||||
- 110.40.192.42
|
||||
username: root
|
||||
ssh_key:
|
||||
from_secret: TXY_KEY
|
||||
|
||||
steps:
|
||||
- name: Git
|
||||
environment:
|
||||
GIT_NAME:
|
||||
from_secret: GIT_NAME
|
||||
GIT_PASSWD:
|
||||
from_secret: GIT_PASSWD
|
||||
commands:
|
||||
- echo "git准备"
|
||||
- echo "https://$GIT_NAME:$GIT_PASSWD@git.des8.com" > ~/.git-credentials
|
||||
|
||||
- name: Clone
|
||||
commands:
|
||||
- echo "Clone代码"
|
||||
- cd /www/wwwroot/car.des8.com
|
||||
- pwd && ls -l
|
||||
- git pull origin master
|
||||
|
||||
- name: Chown to www
|
||||
commands:
|
||||
- chown -R www:www ./
|
||||
- pwd && ls -l
|
Loading…
Reference in New Issue
Block a user