Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a6a62f71f8 | ||
|
41c4a6717d | ||
|
1bacfafd67 | ||
|
e262980f7c | ||
|
47c51d0671 | ||
|
8d2429044c | ||
|
3a43d5d122 | ||
|
e0a97e9b7e | ||
|
5d5a1924ff | ||
|
e1311e1b76 | ||
|
1266d75657 | ||
|
59a9c32448 | ||
|
be47579f6e | ||
|
35982442a5 | ||
|
9f58d938e4 | ||
|
c7ff82108e |
42
.drone.yml
42
.drone.yml
@ -8,20 +8,27 @@ clone:
|
||||
steps:
|
||||
- name: pull
|
||||
image: bitnami/git
|
||||
# volumes:
|
||||
# - name: app
|
||||
# path: /app
|
||||
# - name: ssh
|
||||
# path: ~/.ssh
|
||||
volumes:
|
||||
- name: ssh
|
||||
path: /app/.ssh
|
||||
commands:
|
||||
- pwd
|
||||
- ls -l ./
|
||||
# - cd /app/blogPublish
|
||||
# - git pull
|
||||
# - cd /app/blogPublish/source/_posts/technology-note
|
||||
# - git pull
|
||||
# - name: package
|
||||
# image: node:16-bullseye
|
||||
- cd /app/.ssh
|
||||
- eval $(ssh-agent)
|
||||
- ssh-add id_rsa
|
||||
- cd ../
|
||||
- mkdir ~/.ssh && ssh-keyscan -p 222 -t rsa gitea.fleyx.com >> ~/.ssh/known_hosts
|
||||
- sleep 2001
|
||||
- git clone --depth 1 ssh://git@gitea.fleyx.com:222/fanxb/BlogGenerate.git
|
||||
- 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:
|
||||
# - name: app
|
||||
# path: /app
|
||||
@ -42,4 +49,11 @@ steps:
|
||||
# include: [ "app.jar", "app.jar.md5" ]
|
||||
# script:
|
||||
# - 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