Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
6032266320
commit
416083a14f
|
@ -1,15 +1,31 @@
|
|||
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: dev
|
||||
name: develop流水线
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
arch: arm64
|
||||
steps:
|
||||
- name: maven
|
||||
image: maven:3-jdk-10
|
||||
- name: ruby
|
||||
image: ruby
|
||||
commands:
|
||||
- mvn install -DskipTests=true
|
||||
- bundle install --jobs=3 --retry=3
|
||||
- rake
|
||||
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
|
||||
# host、username、password可在参数管理中配置
|
||||
- name: 远程主机部署
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
from_secret: ip
|
||||
username:
|
||||
from_secret: name
|
||||
password:
|
||||
from_secret: pwd
|
||||
port: 22
|
||||
script:
|
||||
- chmod +x /home/deploy.sh
|
||||
- ./home/deploy.sh
|
||||
trigger:
|
||||
branch:
|
||||
- develop
|
||||
|
|
Loading…
Reference in New Issue