gitlink_help_center/.devops/test.yml

81 lines
1.8 KiB
YAML

version: 2
name: test
description: ""
global:
concurrent: 1
<<<<<<< HEAD
=======
trigger:
webhook: gitlink@1.0.0
event:
- ref: push
ruleset-operator: AND
>>>>>>> origin/master
workflow:
- ref: start
name: 开始
task: start
- ref: end
name: 结束
task: end
needs:
- ssh_cmd_0
- ref: docker_image_build_0
name: docker镜像构建
task: docker_image_build@1.6.0
input:
<<<<<<< HEAD
docker_username: ((docker.username))
docker_password: ((docker.passward))
image_name: '"registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center"'
image_tag: '"latest"'
registry_address: '"registry.cn-guangzhou.aliyuncs.com"'
docker_file: '"Dockerfile"'
docker_build_path: '"."'
workspace: git_clone_0.git_path
=======
image_name: '""'
image_tag: '"latest"'
registry_address: '""'
docker_file: '"Dockerfile"'
docker_build_path: '"."'
workspace: '"."'
>>>>>>> origin/master
image_push: true
build_args: '""'
needs:
- git_clone_0
- ref: git_clone_0
name: git clone
task: git_clone@1.2.9
input:
<<<<<<< HEAD
remote_url: '"https://gitlink.org.cn/wangmingqiang/gitlink_help_center.git"'
=======
remote_url: '""'
>>>>>>> origin/master
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: ssh_cmd_0
name: ssh执行命令
task: ssh_cmd@1.1.1
input:
<<<<<<< HEAD
ssh_pass: ((ssh.passward))
ssh_ip: '"47.97.180.226"'
ssh_port: '"3000"'
ssh_user: '"root"'
ssh_cmd: "'ls'"
=======
ssh_ip: '""'
ssh_port: '"22"'
ssh_user: '"root"'
ssh_cmd: '""'
>>>>>>> origin/master
needs:
- docker_image_build_0