From f7e17010595ce31dc295589904ebdb7393efac89 Mon Sep 17 00:00:00 2001 From: Tomas Heky Hekrla Date: Mon, 7 Oct 2024 22:42:06 +0200 Subject: [PATCH 1/3] fix(wattrouter): missing config warning --- src/wattrouter/wattrouter.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wattrouter/wattrouter.module.ts b/src/wattrouter/wattrouter.module.ts index 4446daba..6f99798a 100644 --- a/src/wattrouter/wattrouter.module.ts +++ b/src/wattrouter/wattrouter.module.ts @@ -27,7 +27,7 @@ export class WATTrouterModule implements OnApplicationBootstrap { ) {} async onApplicationBootstrap() { - if (this.config.getOrThrow('thermometers', { infer: true }).length === 0) { + if (this.config.getOrThrow('wattrouters', { infer: true }).length === 0) { this.logger.warn('No WATTrouters configured!'); } From 2edafb414c1c13d536ef04c3593154bb35f020c5 Mon Sep 17 00:00:00 2001 From: Tomas Heky Hekrla Date: Mon, 7 Oct 2024 22:53:23 +0200 Subject: [PATCH 2/3] fix: enable shutdown hooks --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index 4a3d0358..0f8e3f6a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,6 +6,7 @@ import { AppModule } from './app.module.js'; async function bootstrap() { const app = await NestFactory.createApplicationContext(AppModule); + app.enableShutdownHooks(); app.useLogger(app.get(WINSTON_MODULE_NEST_PROVIDER)); await app.init(); NativeLogger.log('Application initialized', bootstrap.name); From e8b9e13a53a42569917112f6ea4a4920e0171f12 Mon Sep 17 00:00:00 2001 From: Tomas Heky Hekrla Date: Mon, 7 Oct 2024 22:54:02 +0200 Subject: [PATCH 3/3] ci(docker): add more semver tags --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 61ed3d0b..537c0b81 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -102,6 +102,8 @@ jobs: tags: | type=sha type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} - name: Set up QEMU uses: docker/setup-qemu-action@v3