mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 15:10:22 +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 threading
|
||||
|
||||
|
@ -372,7 +373,10 @@ class PortainerAPI:
|
|||
path=f"stacks/{stackID}/git/redeploy",
|
||||
params={"endpointId": endpointId},
|
||||
json={
|
||||
"env":[],
|
||||
"env":[{
|
||||
"name": "DEPLOY_TIME",
|
||||
"value": "-"+datetime.now().strftime("%Y%m%d%H%M%S")
|
||||
}],
|
||||
"prune":False,
|
||||
"RepositoryReferenceName":"",
|
||||
"RepositoryAuthentication":True,
|
||||
|
|
Loading…
Reference in a new issue