This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
galaxy-deployment-tsg-olap-…/.gitlab-ci.yml
2024-11-07 13:37:59 +00:00

33 lines
873 B
YAML

image: 192.168.40.153:8082/common/maven:3.8.1-openjdk-11-slim
stages:
- build
- deploy
variables:
VERSION: "$CI_COMMIT_TAG"
build:
stage: build
script:
- ls -lah # 查看当前目录的文件情况
- tar -czvf tsg-olap-data-initialization-$VERSION.tar.gz clickhouse/ config-templates/ druid/ file-chunk-combiner/ groot-stream/ hbase/ hos/ kafka/ mariadb/ monitoring-templates/ shell-scripts/
- ls -lah # 查看压缩包创建后的文件
artifacts:
paths:
- tsg-olap-data-initialization-$CI_COMMIT_TAG.tar.gz
only:
- tags
deploy:
stage: deploy
script:
- echo "Uploading to Nexus..."
- ls -lah
- curl -v -u $NEXUS_USER:$NEXUS_PASSWORD --upload-file tsg-olap-data-initialization-$VERSION.tar.gz "$NEXUS_URL/deployment/tsg-olap-data-initialization-$VERSION.tar.gz"
dependencies:
- build
only:
- tags