This commit is contained in:
fanxb 2022-09-24 15:31:03 +08:00
parent 8d2429044c
commit 47c51d0671

View File

@ -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
@ -43,4 +47,11 @@ steps:
# include: [ "app.jar", "app.jar.md5" ] # include: [ "app.jar", "app.jar.md5" ]
# 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