ci: 新增执行 hello.sh脚本的步骤
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
- 在 .drone.yml 文件中添加了新的步骤 run-hello-script - 新增 hello.sh 脚本,输出 "hello world" - 添加脚本执行权限并执行
This commit is contained in:
parent
ea4f73fbd1
commit
6ec2a92b8e
|
|
@ -3,8 +3,8 @@ type: docker
|
|||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: docker.1ms.run/golang:1.20
|
||||
# 新增执行shell脚本的步骤
|
||||
- name: run-hello-script
|
||||
commands:
|
||||
- go build
|
||||
- go test
|
||||
- chmod +x hello.sh # 添加执行权限
|
||||
- ./hello.sh # 执行脚本
|
||||
Loading…
Reference in New Issue