Forráskód Böngészése

"ops auto at 2019-05-18 15:08:43"

robert 6 éve
szülő
commit
6396177ba9
1 módosított fájl, 30 hozzáadás és 32 törlés
  1. 30 32
      .drone.yml

+ 30 - 32
.drone.yml

@@ -1,35 +1,33 @@
----
 kind: pipeline
 name: flining
-
 steps:
- - name: build
-   image: hub.evbj.easou.com/dev/drone-agent-custom:v1.0.0
-  #  pull: always
-   privileged: true
-   environment:
-     JNLP_ENV: op
-     JNLP_REPO: hub.evbj.easou.com
-     JNLP_TAG: v1.0.11
-     JNLP_CONTAINER_PORT: 80
-     JNLP_WAR: ums.war
-     JNLP_INGRESS: nginx
-     JNLP_SVC_MODE: http
-     JNLP_STORAGE_CLASS: ceph
-     JNLP_DOMAIN: .evbj.easou.com
-     JNLP_CONTROL: StatefulSet
-     JNLP_REPLICAS: 2
-     JNLP_STORAGE_CAPACITY: 100Gi
-     JNLP_MOUNT_PATH: /data
-     JNLP_LIVENESS_INIT: 60
-     JNLP_LIVENESS_PER: 10
-     JNLP_READINESS_INIT: 60
-     JNLP_READINESS_PER: 10
-   commands: 
-     - wrapper.sh  /bin/sh
-     - docker --config /etc/docker build -t "$JNLP_REPO/$JNLP_ENV/$DRONE_REPO_NAME:$JNLP_TAG" . -f Dockerfile
-     - docker --config /etc/docker push "$JNLP_REPO/$JNLP_ENV/$DRONE_REPO_NAME:$JNLP_TAG"
-     - python ppctl.py -b
-     - python ppctl.py -a
-     - python ppctl.py -c
-     - python ppctl.py -d
+- commands:
+  - wrapper.sh  /bin/sh
+  - docker --config /etc/docker build -t "$JNLP_REPO/$JNLP_ENV/$DRONE_REPO_NAME:$JNLP_TAG"
+    . -f Dockerfile
+  - docker --config /etc/docker push "$JNLP_REPO/$JNLP_ENV/$DRONE_REPO_NAME:$JNLP_TAG"
+  - python ppctl.py -b
+  - python ppctl.py -a
+  - python ppctl.py -c
+  - python ppctl.py -d
+  environment:
+    JNLP_CONTAINER_PORT: '80'
+    JNLP_CONTROL: StatefulSet
+    JNLP_DOMAIN: .evbj.easou.com
+    JNLP_ENV: op
+    JNLP_INGRESS: nginx
+    JNLP_LIVENESS_INIT: '60'
+    JNLP_LIVENESS_PER: '10'
+    JNLP_MOUNT_PATH: /data
+    JNLP_READINESS_INIT: '60'
+    JNLP_READINESS_PER: '10'
+    JNLP_REPLICAS: '2'
+    JNLP_REPO: hub.evbj.easou.com
+    JNLP_STORAGE_CAPACITY: 100Gi
+    JNLP_STORAGE_CLASS: ceph
+    JNLP_SVC_MODE: http
+    JNLP_TAG: v1.0.11
+    JNLP_WAR: ROOT.war
+  image: hub.evbj.easou.com/dev/drone-agent-custom:v1.0.0
+  name: build
+  privileged: true