File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Deploy to staging SCP instance
22on :
3- schedule :
4- - cron : " 15 8 * * 1-5"
53 workflow_run :
64 workflows : ["Build and publish single-cell-portal Docker image"]
75 types :
Original file line number Diff line number Diff line change 44# crontab entry should be as follows:
55# */5 * * * * /root/restart_portal_container.sh > /dev/null 2>&1
66docker ps --filter " status=exited" | grep -e ' single_cell' | while read -r line ; do
7- container_id=` echo $line | awk ' {print $1}' `
8- container_name=` echo $line | awk ' {print $NF}' `
9- echo " Restarting $container_name ($container_id ) on $( date) " >> /home/jenkins/deployments/single_cell_portal_core/log/cron_out.log
10- docker restart $container_id
7+ container_id=` echo $line | awk ' {print $1}' `
8+ container_name=` echo $line | awk ' {print $NF}' `
9+ echo " Restarting $container_name ($container_id ) on $( date) " >> /home/jenkins/deployments/single_cell_portal_core/log/cron_out.log
10+ docker restart $container_id
1111done
You can’t perform that action at this time.
0 commit comments