ci: 新增执行 hello.sh脚本的步骤
continuous-integration/drone/push Build was killed Details

- 在 .drone.yml 文件中添加了新的步骤 run-hello-script
- 新增 hello.sh 脚本,输出 "hello world"
- 添加脚本执行权限并执行
This commit is contained in:
hsc 2025-03-30 17:50:42 +08:00
parent ea4f73fbd1
commit 6ec2a92b8e
2 changed files with 5 additions and 4 deletions

View File

@ -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 # 执行脚本

1
hello.sh Normal file
View File

@ -0,0 +1 @@
echo 'hello world'