Skip to content

Commit 8748bc7

Browse files
committed
updated
1 parent 9076005 commit 8748bc7

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# ci-report-append-logfile-webroot.sh: run this script as user ubuntu on cicd.rtx.ai to append
3+
# the result of the CICD status check to a logfile under Nginx document root.
4+
5+
set -o nounset -o pipefail -o errexit
6+
7+
sudo bash -c "cd /home/ubuntu/actions-runner && ./svc.sh status | grep runsvc.sh | grep python > /var/www/html/cicd.txt"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -o nounset -o pipefail -o errexit
4+
5+
sudo apt-get update
6+
sudo apt-get install -y nginx certbot python3-certbot-nginx
7+
sudo sed -i 's/server_name _;/server_name cicd.rtx.ai;/g' /etc/nginx/sites-enabled/default
8+
sudo servic nginx reload
9+
sudo certbot --no-eff-email --agree-tos --redirect --nginx -m [email protected] -d cicd.rtx.ai

0 commit comments

Comments
 (0)