diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index faf7b99..3e37f54 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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