4.0.0 • Published 2 years ago

@betsys-nestjs/build-info v4.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Build Info Libs

Library for that adds standardized endpoint that shows build information.

Environment variables

This library consumes the following environment variables (these should be "baked" into the application docker image):

Variable nameDescription
BUILD_ID=devThe build ID, usually docker image tag
PIPELINE=devThe pipeline ID, usually CI_PIPELINE_ID value
GIT_TAG=devThe git tag, usually CI_COMMIT_TAG value
TIMESTAMP=0The timestamp, usually unix timestamp when the build started

Dependencies

PackageVersion
@hapi/joi^17.0.0
@nestjs/common^10.0.0
@nestjs/config^3.0.0
@nestjs/core^10.0.0
@nestjs/platform-express^10.0.0
@nestjs/swagger^7.0.0
reflect-metadata<1.0.0
rxjs^7.0.0

Usage

Just import BuildInfoModule to your AppModule

import { Module } from '@nestjs/common';
import { BuildInfoModule } from './build-info.module';

@Module({
    imports: [BuildInfoModule.forRoot({
        buildId: '15',
        timestamp: 547811515,
        pipeline: 'ac8329af',
        gitTag: '1.1',
    })]
})
class AppModule {}
3.1.0

2 years ago

4.0.0

2 years ago

3.0.0

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago