This commit is contained in:
parent
b8ceb2ed34
commit
8bbecaa7b7
2 changed files with 12 additions and 1 deletions
|
@ -36,6 +36,7 @@ pipeline:
|
||||||
- podman login git.mzhang.io --username michael --password $DOCKER_TOKEN
|
- podman login git.mzhang.io --username michael --password $DOCKER_TOKEN
|
||||||
- podman push $REPO:$TAG
|
- podman push $REPO:$TAG
|
||||||
- podman push $REPO:latest
|
- podman push $REPO:latest
|
||||||
|
- exit 1
|
||||||
secrets:
|
secrets:
|
||||||
- DOCKER_TOKEN
|
- DOCKER_TOKEN
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -43,3 +44,4 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
# event: tag
|
# event: tag
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,16 @@
|
||||||
|
|
||||||
// Connect to websocket
|
// Connect to websocket
|
||||||
let roomId = "{{ room_id }}";
|
let roomId = "{{ room_id }}";
|
||||||
let ws = new WebSocket(`ws://${location.host}/ws/${roomId}`);
|
let protocol;
|
||||||
|
switch (location.protocol) {
|
||||||
|
case "https:":
|
||||||
|
protocol = "wss:";
|
||||||
|
case "http:":
|
||||||
|
protocol = "ws:";
|
||||||
|
default:
|
||||||
|
throw new Error("L");
|
||||||
|
}
|
||||||
|
let ws = new WebSocket(`${protocol}//${location.host}/ws/${roomId}`);
|
||||||
|
|
||||||
// Relay all messages to terminal
|
// Relay all messages to terminal
|
||||||
ws.addEventListener("message", (msg) => {
|
ws.addEventListener("message", (msg) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue