From ab29891c00ade30368628897ddcf068edc8fde19 Mon Sep 17 00:00:00 2001 From: hsc Date: Sun, 30 Mar 2025 17:53:29 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=96=B0=E5=A2=9E=E8=BF=90=E8=A1=8C=20he?= =?UTF-8?q?llo.sh=E8=84=9A=E6=9C=AC=E7=9A=84=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 .drone.yml 文件中添加了新的步骤 run-hello-script - 使用 docker.1ms.run/alpine:latest 作为基础镜像- 通过 chmod +x hello.sh 为脚本添加执行权限- 执行 hello.sh 脚本 --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 10e16a3..0b91517 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,8 +3,8 @@ type: docker name: default steps: - # 新增执行shell脚本的步骤 - name: run-hello-script + image: docker.1ms.run/alpine:latest # 必须指定基础镜像(如alpine/bash) commands: - - chmod +x hello.sh # 添加执行权限 - - ./hello.sh # 执行脚本 \ No newline at end of file + - chmod +x hello.sh + - ./hello.sh