make gitea/Jenkinsfile declarative

This commit is contained in:
2019-02-10 10:43:38 -05:00
parent c5818a7266
commit 464e6db82f
2 changed files with 46 additions and 23 deletions

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
REPLICA_COUNT=`docker service inspect $1 | jq '.[0].Spec.Mode.Replicated.Replicas'`
./timeout.sh -t $2 docker service scale $1=$(($REPLICA_COUNT*2))
./timeout.sh -t $2 docker service scale $1=$(($REPLICA_COUNT))
docker service update -q $1