Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a6a62f71f8 | ||
|
41c4a6717d | ||
|
1bacfafd67 | ||
|
e262980f7c | ||
|
47c51d0671 | ||
|
8d2429044c | ||
|
3a43d5d122 | ||
|
e0a97e9b7e | ||
|
5d5a1924ff | ||
|
e1311e1b76 | ||
|
1266d75657 | ||
|
59a9c32448 | ||
|
be47579f6e | ||
|
35982442a5 | ||
|
9f58d938e4 | ||
|
c7ff82108e |
40
.drone.yml
40
.drone.yml
@ -8,20 +8,27 @@ clone:
|
|||||||
steps:
|
steps:
|
||||||
- name: pull
|
- name: pull
|
||||||
image: bitnami/git
|
image: bitnami/git
|
||||||
# volumes:
|
volumes:
|
||||||
# - name: app
|
- name: ssh
|
||||||
# path: /app
|
path: /app/.ssh
|
||||||
# - name: ssh
|
|
||||||
# path: ~/.ssh
|
|
||||||
commands:
|
commands:
|
||||||
- pwd
|
- cd /app/.ssh
|
||||||
- ls -l ./
|
- eval $(ssh-agent)
|
||||||
# - cd /app/blogPublish
|
- ssh-add id_rsa
|
||||||
# - git pull
|
- cd ../
|
||||||
# - cd /app/blogPublish/source/_posts/technology-note
|
- mkdir ~/.ssh && ssh-keyscan -p 222 -t rsa gitea.fleyx.com >> ~/.ssh/known_hosts
|
||||||
# - git pull
|
- sleep 2001
|
||||||
# - name: package
|
- git clone --depth 1 ssh://git@gitea.fleyx.com:222/fanxb/BlogGenerate.git
|
||||||
# image: node:16-bullseye
|
- cd BlogGenerate/source/_posts
|
||||||
|
- git clone --depth 1 ssh://git@gitea.fleyx.com:222/fanxb/technology-note.git
|
||||||
|
- sleep 100
|
||||||
|
- ls -l
|
||||||
|
# - name: package
|
||||||
|
# image: node:16-bullseye
|
||||||
|
|
||||||
|
environment:
|
||||||
|
privateKey:
|
||||||
|
from_secret: privateSsh
|
||||||
# volumes:
|
# volumes:
|
||||||
# - name: app
|
# - name: app
|
||||||
# path: /app
|
# path: /app
|
||||||
@ -43,3 +50,10 @@ steps:
|
|||||||
# script:
|
# script:
|
||||||
# - cd ~/packages
|
# - cd ~/packages
|
||||||
# - md5sum -c app.jar.md5
|
# - md5sum -c app.jar.md5
|
||||||
|
volumes:
|
||||||
|
- name: ssh
|
||||||
|
host:
|
||||||
|
path: /root/.ssh
|
||||||
|
- name: npmRep
|
||||||
|
host:
|
||||||
|
path: /root/npmRep
|
Loading…
x
Reference in New Issue
Block a user