Merge branch 'master' of https://gitlink.org.cn/wuyifan/gitlink_help_center into fangxiaoting

This commit is contained in:
fangxiaoting 2024-07-13 08:07:44 +08:00
commit 7320b27941
4 changed files with 111 additions and 24 deletions

64
.devops/合并触发.yml Normal file
View File

@ -0,0 +1,64 @@
version: 2
name: 合并触发
description: ""
global:
concurrent: 1
trigger:
webhook: gitlink@1.0.0
event:
- ref: pr
ruleset:
- param-ref: merged
operator: EQ
value: "true"
ruleset-operator: AND
workflow:
- ref: start
name: 开始
task: start
- ref: git_clone_0
name: git clone
task: git_clone@1.2.9
input:
remote_url: '"https://gitlink.org.cn/wuyifan/gitlink_help_center.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: docker_image_build_0
name: docker镜像构建
task: docker_image_build@1.6.0
input:
docker_username: ((dockerhub.username))
docker_password: ((dockerhub.password))
image_name: '"registry.cn-hangzhou.aliyuncs.com/zhanglinhao/devops-test"'
image_tag: '"latest"'
registry_address: '"registry.cn-hangzhou.aliyuncs.com"'
docker_file: '"Dockerfile"'
docker_build_path: '"."'
workspace: git_clone_0.git_path
image_push: true
build_args: '""'
needs:
- git_clone_0
- ref: ssh_cmd_0
name: ssh执行命令
task: ssh_cmd@1.1.1
input:
ssh_pass: ((ssh.password))
ssh_ip: '"120.27.216.107"'
ssh_port: '"22"'
ssh_user: '"root"'
ssh_cmd: '"docker stop devops-test && docker rm devops-test && docker pull
registry.cn-hangzhou.aliyuncs.com/zhanglinhao/devops-test:latest &&
docker run -p 3000:3000 --name devops-test -d
registry.cn-hangzhou.aliyuncs.com/zhanglinhao/devops-test:latest"'
needs:
- docker_image_build_0
- ref: end
name: 结束
task: end
needs:
- ssh_cmd_0

View File

@ -4,7 +4,7 @@ LABEL maintainer="zhanglinhao <1260788704@qq.com>"
WORKDIR /gitlink_help_center
COPY ./ /gitlink_help_center/
RUN yarn install
RUN npm run build -- --locale zh-cn
RUN npm run build
CMD ["npm", "run", "serve"]

View File

@ -1,21 +1,25 @@
# 代码提交
## 方法一:网页提交代码
<m>GitLink支持在网页上对自己分支的代码进行编辑修改和提交具体流程如下所示</m>
<m>点击框出的编辑按钮即可开始编辑,如下图所示。</m>
![](../../static/img/代码提交.png)<br/>
<m>在完成编辑后在该界面最下方可提交代码变更结果,可选择提交分支并对附带变更进行说明,如下图所示。</m>
![](../../static/img/代码提交2.png)<br/>
## 方法二通过git本地提交代码
<m>通过git可将本地代码文件上传支持单个文件或多个文件的文件夹上传这里只示范通过git push提交项目中的所有新文件</m>
![](../../static/img/代码提交3.png)<br/>
## 方法三通过TortoiseGit本地提交代码
### TortoiseGit简介和下载地址
<m>TortoiseGit是基于 TortoiseSVN 的 Git 版本的 Windows Shell 界面。它是开源的,可以完全使用免费软件构建。</m>
<m>TortoiseGit 支持你执行常规任务,例如 commit、显示日志、区分两个版本、创建分支和标签、创建补丁等。</m>
<m>TortoiseGit下载地址https://download.tortoisegit.org/tgit/ </m>
### TortoiseGit代码提交示例
<m>通过TortoiseGit与目标分支建立分支后只需点击对应的提交按钮即可对项目中的所有更新进行提交不限于代码</m>
![](../../static/img/代码提交5.png)<br/>
![](../../static/img/代码提交4.png)<br/>
- **提交者**wuyifan
- **日期**2024.5.27
---
sidebar_label: '代码提交'
sidebar_position: 3
---
# 代码提交
## 方法一:网页提交代码
GitLink支持在网页上对自己分支的代码进行编辑修改和提交具体流程如下所示
点击框出的编辑按钮即可开始编辑,如下图所示。
![](../../static/img/代码提交.png)<br/>
在完成编辑后在该界面最下方可提交代码变更结果,可选择提交分支并对附带变更进行说明,如下图所示。
![](../../static/img/代码提交2.png)<br/>
## 方法二通过git本地提交代码
通过git可将本地代码文件上传支持单个文件或多个文件的文件夹上传这里只示范通过git push提交项目中的所有新文件。<br/>
![](../../static/img/代码提交3.png)<br/>
## 方法三通过TortoiseGit本地提交代码
### TortoiseGit简介和下载地址
TortoiseGit是基于 TortoiseSVN 的 Git 版本的 Windows Shell 界面。它是开源的,可以完全使用免费软件构建。
TortoiseGit 支持你执行常规任务,例如 commit、显示日志、区分两个版本、创建分支和标签、创建补丁等。
TortoiseGit下载地址https://download.tortoisegit.org/tgit/
### TortoiseGit代码提交示例
通过TortoiseGit与目标分支建立分支后只需点击对应的提交按钮即可对项目中的所有更新进行提交不限于代码
![](../../static/img/代码提交5.png)<br/>
![](../../static/img/代码提交4.png)<br/>
- **提交者**wuyifan
- **日期**2024.5.30

View File

@ -56,7 +56,26 @@ module.exports = {
type: 'doc',
docId: 'intro',
position: 'left',
label: '帮助中心'
label: '帮助中心',
to:'/'
},
{
label: '更多开源',
position: 'right',
items: [
{
label: 'GitHub',
to: 'https://github.com/',
},
{
label: 'Gitee',
to: 'https://gitee.com/',
},
{
label: 'Gitlab',
to: 'https://about.gitlab.com',
},
],
},
{
href: 'https://github.com/boxyhq',