Skip to content

Commit e141a9b

Browse files
committed
update
1 parent 66e34cc commit e141a9b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/start_wesql_cluster.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,16 @@ jobs:
107107

108108
- name: Install and Start ngrok
109109
run: |
110-
# 安装ngrok
111-
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /usr/share/keyrings/ngrok-archive-keyring.asc >/dev/null
112-
echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list
110+
# 获取并转换ngrok公钥
111+
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo gpg --dearmor -o /usr/share/keyrings/ngrok-archive-keyring.gpg
112+
# 添加ngrok软件源,并使用signed-by指定keyring
113+
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/ngrok-archive-keyring.gpg] https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list
114+
# 更新并安装ngrok
113115
sudo apt-get update && sudo apt-get install ngrok -y
114-
116+
115117
# 配置ngrok token
116118
ngrok config add-authtoken 2nauO5aVlhxpLxgPcgG92D5WKM8_6fqhSn1XogXRzChjvCBLz
117-
119+
118120
# 后台启动ngrok tcp隧道
119121
nohup ngrok tcp 3306 > ngrok.log 2>&1 &
120122
sleep 5

0 commit comments

Comments
 (0)