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:
- name: run-hello-script
image: docker.1ms.run/alpine:latest # 必须指定基础镜像如alpine/bash
image: docker.1ms.run/docker:latest # 必须指定基础镜像如alpine/bash
commands:
- chmod +x ./hello.sh
- ./hello.sh

View File

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