|
@@ -0,0 +1,35 @@
|
|
|
+---
|
|
|
+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
|