forked from Gitlink/gitlink_help_center
Compare commits
55 Commits
Author | SHA1 | Date |
---|---|---|
|
25f3b78663 | |
|
7c9f6d6c3c | |
|
1e5117bc84 | |
|
725660a029 | |
|
c2c7a61701 | |
|
e8acd8e6f5 | |
|
a445fba350 | |
![]() |
a5baaf56cc | |
![]() |
d97717fa72 | |
![]() |
3b14f84ac0 | |
![]() |
8553894511 | |
|
a144a422b0 | |
|
a74b4e31f4 | |
|
d92dc5748a | |
|
e926bb3c33 | |
|
efab19a50e | |
|
9ac2330ced | |
|
7ca71ee84d | |
|
b095b842d9 | |
|
d342e9edfb | |
|
04b719b4e6 | |
|
48585ad98c | |
|
06a2526aa5 | |
|
e5e0269a50 | |
|
93ce8d11fd | |
|
52bbbdd3a3 | |
|
2d75d70dc8 | |
|
d0da811b2a | |
|
2e4c5855f4 | |
|
0a7fab2ae9 | |
|
576e8f6adb | |
|
672da4f1a3 | |
|
09cf554f14 | |
|
a40249a548 | |
|
79317a3abb | |
|
7a1d42914d | |
|
decf8d0075 | |
|
1c17956fd6 | |
|
02122ee88e | |
|
c617f08d10 | |
|
8b5c3e7f12 | |
|
b547577865 | |
|
ab0fca8b4a | |
|
10b106a412 | |
|
3a185b806a | |
|
a04fec959e | |
|
31bf87934d | |
|
3aa0d1f4b9 | |
|
5ee2da754d | |
|
05a00a269b | |
|
6b62de60ad | |
|
a0fee2d369 | |
|
fd60267cf0 | |
|
2c639e7ca1 | |
|
3f43a83091 |
|
@ -1,5 +1,5 @@
|
|||
version: 2
|
||||
name: test
|
||||
name: group4-自动部署帮助中心至服务器
|
||||
description: ""
|
||||
global:
|
||||
concurrent: 1
|
||||
|
@ -9,11 +9,8 @@ trigger:
|
|||
- ref: push
|
||||
ruleset:
|
||||
- param-ref: branch
|
||||
operator: INCLUDE
|
||||
value: '"wuyifan"'
|
||||
- param-ref: branch
|
||||
operator: INCLUDE
|
||||
value: '"zhanglinhao"'
|
||||
operator: EQ
|
||||
value: '"master"'
|
||||
ruleset-operator: OR
|
||||
workflow:
|
||||
- ref: start
|
||||
|
@ -23,12 +20,11 @@ workflow:
|
|||
name: git clone
|
||||
task: git_clone@1.2.9
|
||||
input:
|
||||
username: ((test.gitAccount))
|
||||
password: ((test.gitPassword))
|
||||
ssh_key: ((test.sshPrivate))
|
||||
remote_url: '"git@code.gitlink.org.cn:wuyifan/gitlink_help_center.git"'
|
||||
username: ((zhanglinhao.username))
|
||||
password: ((zhanglinhao.password))
|
||||
remote_url: '"https://gitlink.org.cn/wuyifan/gitlink_help_center.git"'
|
||||
ref: '"refs/heads/master"'
|
||||
commit_id: '"trigger.pusher"'
|
||||
commit_id: '""'
|
||||
depth: 1
|
||||
needs:
|
||||
- start
|
||||
|
@ -36,12 +32,14 @@ workflow:
|
|||
name: docker镜像构建
|
||||
task: docker_image_build@1.6.0
|
||||
input:
|
||||
image_name: '""'
|
||||
docker_username: ((dockerhub.username))
|
||||
docker_password: ((dockerhub.password))
|
||||
image_name: '"registry.cn-hangzhou.aliyuncs.com/zhanglinhao/devops-test"'
|
||||
image_tag: '"latest"'
|
||||
registry_address: '""'
|
||||
registry_address: '"registry.cn-hangzhou.aliyuncs.com"'
|
||||
docker_file: '"Dockerfile"'
|
||||
docker_build_path: '"."'
|
||||
workspace: '"."'
|
||||
workspace: git_clone_0.git_path
|
||||
image_push: true
|
||||
build_args: '""'
|
||||
needs:
|
||||
|
@ -59,7 +57,10 @@ workflow:
|
|||
ssh_ip: '"120.27.216.107"'
|
||||
ssh_port: '"22"'
|
||||
ssh_user: '"root"'
|
||||
ssh_cmd: '""'
|
||||
ssh_cmd: '"docker stop devops-test && docker rm devops-test && docker pull
|
||||
registry.cn-hangzhou.aliyuncs.com/zhanglinhao/devops-test:latest &&
|
||||
docker run -d -p 3000:3000 --name devops-test -d
|
||||
registry.cn-hangzhou.aliyuncs.com/zhanglinhao/devops-test:latest"'
|
||||
needs:
|
||||
- docker_image_build_0
|
||||
|
|
@ -127,9 +127,26 @@ module.exports = {
|
|||
{
|
||||
label:'公众号',
|
||||
to:'https://www.gitlink.org.cn'
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: '更多开源',
|
||||
items: [
|
||||
{
|
||||
label: 'GitHub',
|
||||
to: 'https://github.com/',
|
||||
},
|
||||
{
|
||||
label: 'Gitee',
|
||||
to: 'https://gitee.com/',
|
||||
},
|
||||
{
|
||||
label: 'Gitlab',
|
||||
to: 'https://about.gitlab.com',
|
||||
},
|
||||
],
|
||||
}
|
||||
],
|
||||
copyright: `<p>©Copyright ${new Date().getFullYear()} CCF 开源发展委员会</p><p>Powered by Trustie& IntelliDE 京ICP备13000930号</p>`,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue