Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/deploy/microblog_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def poll_check_endpoint(self, timeout=60, check_interval=5):

return False

def deploy(self, reload=True, rebuild=True, monitor=True):
def deploy(self, reload=True, rebuild=True, monitor=True, monitor_timeout=60):
"""Execute deployment sequence"""
print("🚀 Micro.blog Deployment")
print("=" * 60)
Expand Down Expand Up @@ -288,7 +288,7 @@ def deploy(self, reload=True, rebuild=True, monitor=True):
# Monitor build by polling check endpoint
if monitor and rebuild:
print()
if not self.poll_check_endpoint():
if not self.poll_check_endpoint(timeout=monitor_timeout):
success = False

print()
Expand Down Expand Up @@ -333,12 +333,13 @@ def main():
sys.exit(0 if success else 1)

if args.all:
success = deployer.deploy(reload=True, rebuild=True, monitor=True)
success = deployer.deploy(reload=True, rebuild=True, monitor=True, monitor_timeout=args.timeout)
else:
success = deployer.deploy(
reload=args.reload,
rebuild=args.rebuild,
monitor=args.monitor
monitor=args.monitor,
monitor_timeout=args.timeout,
)

sys.exit(0 if success else 1)
Expand Down
Loading