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

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

View File

@ -6,6 +6,5 @@ steps:
- name: run-hello-script - name: run-hello-script
image: docker.1ms.run/alpine:latest # 必须指定基础镜像如alpine/bash image: docker.1ms.run/alpine:latest # 必须指定基础镜像如alpine/bash
commands: commands:
- echo "hello world" - chmod +x ./hello.sh
- echo "hello world" - ./hello.sh
- echo "hello wor123123123ld"

View File

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