2021-04-20 09:55:14 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build-dist
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: node:lts-buster
|
|
|
|
commands:
|
|
|
|
- apt-get update -y && apt-get install git -y
|
2021-04-29 10:29:50 +00:00
|
|
|
- yarn init-build
|
2021-04-20 09:55:14 +00:00
|
|
|
- yarn drone-build
|
|
|
|
|
|
|
|
- name: git-push
|
|
|
|
image: appleboy/drone-git-push
|
|
|
|
settings:
|
2021-04-29 10:29:50 +00:00
|
|
|
path: "./public/"
|
2021-04-20 11:26:42 +00:00
|
|
|
force: true
|
2021-04-20 09:55:14 +00:00
|
|
|
ssh_key:
|
|
|
|
from_secret: ssh_key
|
2021-04-20 09:56:09 +00:00
|
|
|
remote: ssh://git@direct-git.186526.xyz:10022/186526/build-blog.186526.xyz.git
|
2021-04-20 09:55:14 +00:00
|
|
|
remote_name: git
|
|
|
|
branch: master
|
|
|
|
commit: true
|
|
|
|
author_name: Drone CI
|
|
|
|
author_email: droneci@186526.xyz
|
2021-04-20 11:04:33 +00:00
|
|
|
commit_message: "[Drone CI] Build Dist"
|