fanxp 1 year ago
parent
commit
b0b300a0e8
1 changed files with 7 additions and 7 deletions
  1. 7 7
      .drone.yml

+ 7 - 7
.drone.yml

@@ -12,9 +12,9 @@ steps:
       - name: maven-cache
         path: /root/.m2 # 将maven下载依赖的目录挂载出来,防止重复下载
     environment:
-      - DRONE_CPU_PERIOD=50000
-      - DRONE_CPU_QUOTA=150000
-      - DRONE_MEMORY_LIMIT=4096*1024*1024*8
+      DRONE_CPU_PERIOD: 50000
+      DRONE_CPU_QUOTA: 150000
+      DRONE_MEMORY_LIMIT: 4096*1024*1024*8
     commands:
       - mvn -Dmaven.test.skip=true -P dev clean package
 
@@ -25,10 +25,10 @@ steps:
       - name: docker
         path: /var/run/docker.sock
     environment:
-      - IMAGE=registry.yingcaibx.com/tl/api:latest
-      - DRONE_CPU_PERIOD=50000
-      - DRONE_CPU_QUOTA=150000
-      - DRONE_MEMORY_LIMIT=4096*1024*1024*8
+      IMAGE: registry.yingcaibx.com/tl/api:latest
+      DRONE_CPU_PERIOD: 50000
+      DRONE_CPU_QUOTA: 150000
+      DRONE_MEMORY_LIMIT: 4096*1024*1024*8
     commands:
       # 清理 docker 服务中不再使用的镜像、挂载、网络等资源
       - docker system prune --force --volumes || true