This commit is contained in:
fanxb 2022-09-24 11:10:06 +08:00
parent b508c1f7a4
commit 5d9abe28ec

View File

@ -2,16 +2,44 @@ kind: pipeline
type: docker type: docker
name: blogPublish name: blogPublish
clone:
depth: 1
steps: steps:
- name: package - name: pull
image: node:16-bullseye image: bitnami/git
volumes: # volumes:
- name: app # - name: app
path: /app # path: /app
# - name: ssh
# path: ~/.ssh
commands: commands:
- cd /app - pwd
- npm install -g hexo --registry=https://registry.npmmirror.com - ls -l ./
- npm install --registry=https://registry.npmmirror.com # - cd /app/blogPublish
- hexo v && hexo clean && hexo g # - git pull
- cd public # - cd /app/blogPublish/source/_posts/technology-note
- tar -czf ../dist.tar.gz * # - git pull
# - name: package
# image: node:16-bullseye
# volumes:
# - name: app
# path: /app
# commands:
# - cd /app
# - npm install -g hexo --registry=https://registry.npmmirror.com
# - npm install --registry=https://registry.npmmirror.com
# - hexo v && hexo clean && hexo g
# - cd public
# - tar -czf ../dist.tar.gz *
# - cd public
# - name: deploy
# image: drillster/drone-rsync
# settings:
# hosts: [ "fleyx.com:22000" ]
# source: ./target
# target: ~/packages
# include: [ "app.jar", "app.jar.md5" ]
# script:
# - cd ~/packages
# - md5sum -c app.jar.md5