10
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
gxl 2026-06-25 14:08:30 +08:00
parent 015d848d18
commit bd5f84d11f
1 changed files with 9 additions and 5 deletions

View File

@ -28,6 +28,15 @@ steps:
event: push
branch: master
- name: 调试-查看工作目录文件
image: alpine:latest # 使用一个轻量级的 Linux 镜像
commands: # 普通步骤,使用 commands
- pwd # 打印当前目录
- ls -la # 列出所有文件
- find . -name "*.yml" # 查找所有 .yml 文件
when:
event: push
branch: master
# ============ 新增步骤 1上传 docker-compose.yml ============
- name: 上传编排文件
@ -40,11 +49,6 @@ steps:
password:
from_secret: 136_ssh_password
# 要上传的本地文件(相对于工作空间根目录)
commands:
- pwd
- ls -la
- ls -la ./*.yml || echo "没有找到 yml 文件"
- find . -name "*.yml"
source:
- docker-compose.yml
# 远程服务器目标目录(如果不存在会自动创建)