chore: 添加项目无关文件的 .gitignore 规则
continuous-integration/drone/push Build is failing Details

- 忽略 Maven 构建目录 /target
- 忽略 IntelliJ IDEA 项目配置文件 /.idea- 忽略未定义日志路径文件 /log.path_IS_UNDEFINED- 忽略临时文件目录 /tmp
This commit is contained in:
hsc 2025-04-07 17:58:46 +08:00
parent 5790d1e1c2
commit e34f7247ec
2 changed files with 5 additions and 13 deletions

View File

@ -4,7 +4,7 @@ name: default
steps: steps:
- name: run-hello-script - name: run-hello-script
image: docker.1ms.run/alpine:latest # 必须指定基础镜像如alpine/bash image: docker.1ms.run/docker:latest # 必须指定基础镜像如alpine/bash
commands: commands:
- chmod +x ./hello.sh - chmod +x ./hello.sh
- ./hello.sh - ./hello.sh

View File

@ -1,15 +1,7 @@
# 定义变量 docker --version
NAME="芒星DevOps指挥脚本"
VERSION="alpine"
# 输出欢迎信息 docker ps
echo "Welcome To ${NAME} : Version ${VERSION}"
# 其他功能示例 docker pull hello-world
# 检查当前目录
CURRENT_DIR=$(pwd)
echo "当前目录是: ${CURRENT_DIR}"
# 列出当前目录下的文件 docker run hello-world
echo "当前目录下的文件有:"
ls -l