Update GitHub Actions workflow for Docker image

This commit is contained in:
decolua 2026-04-13 10:30:33 +07:00
parent 22e0592a58
commit ee1271b6fd
2 changed files with 2 additions and 21 deletions

View file

@ -1,27 +1,10 @@
name: Build and Push Docker Image name: Build and Push Docker Image
on: on:
push: release:
tags: types: [published]
- 'v*'
# Uncomment to also build on master pushes (rolling latest).
# Pair with concurrency + paths below to avoid excessive builds.
# branches:
# - master
# paths:
# - 'src/**'
# - 'open-sse/**'
# - 'public/**'
# - 'package*.json'
# - 'next.config.*'
# - 'Dockerfile'
workflow_dispatch: workflow_dispatch:
# Uncomment if re-enabling master push trigger.
# concurrency:
# group: docker-${{ github.ref }}
# cancel-in-progress: true
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }} IMAGE_NAME: ${{ github.repository }}

View file

@ -46,7 +46,6 @@ export async function GET() {
}; };
await state.send(); await state.send();
console.log(`[SSE] Client connected | listeners=${statsEmitter.listenerCount("update") + 1}`);
statsEmitter.on("update", state.send); statsEmitter.on("update", state.send);
statsEmitter.on("pending", state.sendPending); statsEmitter.on("pending", state.sendPending);
@ -67,7 +66,6 @@ export async function GET() {
statsEmitter.off("update", state.send); statsEmitter.off("update", state.send);
statsEmitter.off("pending", state.sendPending); statsEmitter.off("pending", state.sendPending);
clearInterval(state.keepalive); clearInterval(state.keepalive);
console.log("[SSE] Client disconnected");
}, },
}); });