temp
This commit is contained in:
parent
8d2429044c
commit
47c51d0671
35
.drone.yml
35
.drone.yml
@ -8,21 +8,25 @@ clone:
|
|||||||
steps:
|
steps:
|
||||||
- name: pull
|
- name: pull
|
||||||
image: bitnami/git
|
image: bitnami/git
|
||||||
|
volumes:
|
||||||
|
- name: ssh
|
||||||
|
path: /app/.ssh
|
||||||
|
commands:
|
||||||
|
- cd /app/.ssh
|
||||||
|
- eval $(ssh-agent)
|
||||||
|
- ssh-add id_rsa
|
||||||
|
- cd ../
|
||||||
|
- 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:
|
environment:
|
||||||
privateKey:
|
privateKey:
|
||||||
from_secret: privateSsh
|
from_secret: privateSsh
|
||||||
commands:
|
|
||||||
- echo $privateKey
|
|
||||||
- echo $privateKey > sshKey
|
|
||||||
- eval $(ssh-agent)
|
|
||||||
- cat sshKey
|
|
||||||
- chmod 600 sshKey
|
|
||||||
- ssh-add sshKey
|
|
||||||
- sleep 100
|
|
||||||
- git clone --depth 1 ssh://git@gitea.fleyx.com:222/fanxb/BlogGenerate.git
|
|
||||||
- ls -l
|
|
||||||
# - name: package
|
|
||||||
# image: node:16-bullseye
|
|
||||||
# volumes:
|
# volumes:
|
||||||
# - name: app
|
# - name: app
|
||||||
# path: /app
|
# path: /app
|
||||||
@ -44,3 +48,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