summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 7952d67547eadd7aed77427cd4d54734cfabba2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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