{"id":16982010,"url":"https://github.com/1602/docker-build-with-meta","last_synced_at":"2026-05-09T07:02:08.223Z","repository":{"id":138875956,"uuid":"65139310","full_name":"1602/docker-build-with-meta","owner":"1602","description":null,"archived":false,"fork":false,"pushed_at":"2016-12-10T04:23:15.000Z","size":9,"stargazers_count":0,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T18:13:31.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1602.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-07T15:06:27.000Z","updated_at":"2016-08-07T21:10:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb9c89e0-69d6-4197-82f1-499beb0b90d3","html_url":"https://github.com/1602/docker-build-with-meta","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1602%2Fdocker-build-with-meta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1602%2Fdocker-build-with-meta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1602%2Fdocker-build-with-meta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1602%2Fdocker-build-with-meta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1602","download_url":"https://codeload.github.com/1602/docker-build-with-meta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244885515,"owners_count":20526293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T02:07:04.958Z","updated_at":"2026-05-09T07:02:03.200Z","avatar_url":"https://github.com/1602.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Docker build with meta\n\nThis package builds `docker build ` command using meta info from git:\n\n- last commit sha\n- last commit message\n- last commit author\n- git user name\n\n## Installation\n\nAdd to project's dev dependencies\n\n```\nnpm i -D dokcer-build-with-meta\n```\n\nUse as part of build process (add to \"scripts\" section in package.json):\n\n```\n    ...\n    \"postbuild\": \"docker-build-with-meta -t latest -p\",\n    ...\n```\n\n## Usage\n\nRun in directory with package.json and .git\n\n```\ndocker-build-with-meta -t latest -n projectname -p\n```\n\nall arguments are optional:\n\n```\n  -t project tag (default to latest)\n  -n project name (default to what specified in package.json)\n  -p whether publish to registry (not published when omitted)\n  -h usage info\n```\n\nThe package.json file must include name, version and organisation keys on top level.\n\nExample of `psFormat` for `~/.docker/config.json`:\n\n```\n    \"psFormat\": \"table {{.Label \\\"com.docker.compose.service\\\"}}\\t{{.Label \\\"version\\\"}}\\t{{.Label \\\"release-date\\\"}}\\t{{.Status}}\\t{{.Label \\\"commit-sha\\\"}}\\t{{.Label \\\"released-by\\\"}}\",\n```\n\n## LICENSE\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1602%2Fdocker-build-with-meta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1602%2Fdocker-build-with-meta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1602%2Fdocker-build-with-meta/lists"}