buildstamp-bin

Buildstamp binaries for MacOS, Linux and Windows


Keywords
build-info, buildstamp
License
MIT
Install
npm install buildstamp-bin@1.1.2

Documentation

Buildstamp monorepo

Build Status Test Coverage Maintainability

Utility for generating buildstamp file, which contains build meta info like gitcommit hash, timestamp, repo name and so on. This file could be a part of some release artifact (npm-package, docker-image) and makes it self-descriptive.

{
  "git": {
    "commitId": "007b8f715eb5670662d90f90cd1916398d1dfe98",
    "repoUrl": "https://github.com/qiwi/buildstamp.git",
    "repoName": "qiwi/buildstamp"
  },
  "docker": {
    "imageTag": "foo"
  },
  "date": "2020-11-05T15:16:35.904Z"
}

Packages

buildstamp

Buildstamp generator utility supporting native JS and CLI API

import { execute } from 'buildstamp'

const stamp = execute({
    git: true,
    date: { format: 'iso' },
    docker: { imageTag: 'foo' }
})
buildstamp --out.path=some/path/b.json --git --docker.imageTag=foo --date.format=iso

buildstamp-bin

Buildstamp generator executables for MacOS, Windows and Linux. No need Node.js (npx) to be installed.

./buildstamp-macos --out.path=some/path/b.json --git --docker.imageTag=foo --date.format=iso