Update .gitlab-ci.yml

This commit is contained in:
窦凤虎
2024-11-07 13:33:35 +00:00
parent 6852a8b25c
commit c9763f6c08

View File

@@ -11,9 +11,18 @@ variables:
build:
stage: build
script:
- echo "Building the project..."
- tar -czvf tsg-olap-data-initialization-$VERSION.tar.gz --exclude='.git/*' --exclude='.idea/*' --exclude='.gitlab-ci.yml' --exclude='*.iml' --exclude='*.log' --exclude='*.tmp' --exclude='*.tmp.*' --exclude='*.swp' --exclude='*.swp.*' --exclude='*.swo' --exclude='.DS_Store' ./
- ls -lah
- ls -lah # 查看当前目录的文件情况
- tar --no-mtime -czvf tsg-olap-data-initialization-$VERSION.tar.gz --warning=no-file-changed \
--exclude='.git' \
--exclude='.git/*' \
--exclude='.idea/*' \
--exclude='.gitlab-ci.yml' \
--exclude='*.iml' \
--exclude='*.log' \
--exclude='*.tmp' \
--exclude='*.swp' \
--exclude='.DS_Store' ./
- ls -lah # 查看压缩包创建后的文件
artifacts:
paths:
- tsg-olap-data-initialization-$CI_COMMIT_TAG.tar.gz