Parcourir la source

Gitlab CI文件 加tags

LD il y a 5 ans
Parent
commit
44e7bc063a
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      .gitlab-ci.yml

+ 6 - 0
.gitlab-ci.yml

@@ -5,6 +5,8 @@ stages:
 
 
 build_maven:
 build_maven:
   stage: build
   stage: build
+  tags:
+    - was
   script:
   script:
     - echo "build maven....."
     - echo "build maven....."
     - echo "mvn clean"
     - echo "mvn clean"
@@ -12,6 +14,8 @@ build_maven:
 
 
 test_springboot:
 test_springboot:
   stage: test
   stage: test
+  tags:
+    - was
   script:
   script:
     - echo "run java test....."
     - echo "run java test....."
     - echo "java -test"
     - echo "java -test"
@@ -19,6 +23,8 @@ test_springboot:
 
 
 deploy_springboot:
 deploy_springboot:
   stage: deploy
   stage: deploy
+  tags:
+    - was
   script:
   script:
     - echo "deploy springboot...."
     - echo "deploy springboot...."
     - echo "run mvn install"
     - echo "run mvn install"