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 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); 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!'); }