mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 00:50:30 +00:00
update apphub redeploy
This commit is contained in:
parent
d8a45cbc3f
commit
a36d172e4a
1 changed files with 5 additions and 1 deletions
6
apphub/src/external/portainer_api.py
vendored
6
apphub/src/external/portainer_api.py
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
from datetime import datetime
|
||||||
import json
|
import json
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
|
@ -372,7 +373,10 @@ class PortainerAPI:
|
||||||
path=f"stacks/{stackID}/git/redeploy",
|
path=f"stacks/{stackID}/git/redeploy",
|
||||||
params={"endpointId": endpointId},
|
params={"endpointId": endpointId},
|
||||||
json={
|
json={
|
||||||
"env":[],
|
"env":[{
|
||||||
|
"name": "DEPLOY_TIME",
|
||||||
|
"value": "-"+datetime.now().strftime("%Y%m%d%H%M%S")
|
||||||
|
}],
|
||||||
"prune":False,
|
"prune":False,
|
||||||
"RepositoryReferenceName":"",
|
"RepositoryReferenceName":"",
|
||||||
"RepositoryAuthentication":True,
|
"RepositoryAuthentication":True,
|
||||||
|
|
Loading…
Reference in a new issue