forked from Gitlink/gitlink_help_center
feat: .devops/未命名项目.yml
This commit is contained in:
parent
e866389a09
commit
97b2ff81a0
|
@ -0,0 +1,68 @@
|
||||||
|
version: 2
|
||||||
|
name: 未命名项目
|
||||||
|
description: ""
|
||||||
|
global:
|
||||||
|
concurrent: 1
|
||||||
|
trigger:
|
||||||
|
webhook: gitlink@1.0.0
|
||||||
|
event:
|
||||||
|
- ref: push
|
||||||
|
ruleset:
|
||||||
|
- param-ref: branch
|
||||||
|
operator: EQ
|
||||||
|
value: '"master"'
|
||||||
|
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/Eazzy/reposync.git"'
|
||||||
|
ref: '"refs/heads/master"'
|
||||||
|
commit_id: '""'
|
||||||
|
depth: 1
|
||||||
|
needs:
|
||||||
|
- start
|
||||||
|
- ref: ssh_cmd_0
|
||||||
|
name: ssh执行命令
|
||||||
|
task: ssh_cmd@1.1.1
|
||||||
|
input:
|
||||||
|
ssh_pass: ((ssh.key))
|
||||||
|
ssh_ip: '"121.43.168.217"'
|
||||||
|
ssh_port: '"22"'
|
||||||
|
ssh_user: '"root"'
|
||||||
|
ssh_cmd: "\"docker stop reposyncer_app && docker rm reposyncer_app && docker
|
||||||
|
pull
|
||||||
|
registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_grou\
|
||||||
|
peazzy:latest && docker run -it -d -e CEROBOT_MYSQL_HOST='8.134.99.218'
|
||||||
|
-e CEROBOT_MYSQL_PORT=3306 -e CEROBOT_MYSQL_USER=root -e
|
||||||
|
CEROBOT_MYSQL_PWD='951623847' -e CEROBOT_MYSQL_DB='reposyncer' -e
|
||||||
|
BOOT_MODE='app' -p 8089:8000 --name reposyncer_app
|
||||||
|
registry.cn-guangzhou.aliyuncs.com/nudt_devops/reposync_eazzy:latest\""
|
||||||
|
needs:
|
||||||
|
- docker_image_build_0
|
||||||
|
- ref: docker_image_build_0
|
||||||
|
name: docker镜像构建
|
||||||
|
task: docker_image_build@1.6.0
|
||||||
|
input:
|
||||||
|
docker_username: ((docker.username))
|
||||||
|
docker_password: ((docker.docker_key))
|
||||||
|
image_name: '"registry.cn-guangzhou.aliyuncs.com/nudt_devops/reposync_eazzy:latest"'
|
||||||
|
image_tag: '"latest"'
|
||||||
|
registry_address: '"registry.cn-guangzhou.aliyuncs.com"'
|
||||||
|
docker_file: '"Dockerfile"'
|
||||||
|
docker_build_path: '"."'
|
||||||
|
workspace: '"."'
|
||||||
|
image_push: true
|
||||||
|
build_args: '""'
|
||||||
|
needs:
|
||||||
|
- git_clone_0
|
||||||
|
- ref: end
|
||||||
|
name: 结束
|
||||||
|
task: end
|
||||||
|
needs:
|
||||||
|
- ssh_cmd_0
|
||||||
|
|
Loading…
Reference in New Issue