{"id":17004789,"url":"https://github.com/gtramontina/docker-semantic-release","last_synced_at":"2025-07-04T23:04:02.529Z","repository":{"id":28098042,"uuid":"116248863","full_name":"gtramontina/docker-semantic-release","owner":"gtramontina","description":"An image for https://github.com/semantic-release/semantic-release","archived":false,"fork":false,"pushed_at":"2025-03-03T17:39:28.000Z","size":312,"stargazers_count":7,"open_issues_count":22,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T13:32:08.439Z","etag":null,"topics":["docker","docker-image","git","node","semantic-release"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/gtramontina.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":"2018-01-04T10:50:14.000Z","updated_at":"2021-11-11T23:20:04.000Z","dependencies_parsed_at":"2024-02-24T10:41:36.323Z","dependency_job_id":null,"html_url":"https://github.com/gtramontina/docker-semantic-release","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtramontina%2Fdocker-semantic-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtramontina%2Fdocker-semantic-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtramontina%2Fdocker-semantic-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtramontina%2Fdocker-semantic-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gtramontina","download_url":"https://codeload.github.com/gtramontina/docker-semantic-release/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244986338,"owners_count":20542999,"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":["docker","docker-image","git","node","semantic-release"],"created_at":"2024-10-14T04:44:28.713Z","updated_at":"2025-03-22T16:30:50.141Z","avatar_url":"https://github.com/gtramontina.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://hub.docker.com/r/gtramontina/semantic-release/tags/\"\u003e\u003cimg height=\"20\" alt=\"Docker Tags\" src=\"https://img.shields.io/badge/dynamic/json.svg?style=for-the-badge\u0026label=%F0%9F%90%B3%20tags\u0026colorB=066da5\u0026query=$.count\u0026uri=https%3A%2F%2Fhub.docker.com%2Fv2%2Frepositories%2Fgtramontina%2Fsemantic-release%2Ftags\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://hub.docker.com/r/gtramontina/semantic-release/tags/\"\u003e\u003cimg height=\"20\" alt=\"Docker Latest Tag\" src=\"https://img.shields.io/badge/dynamic/json.svg?style=for-the-badge\u0026label=%F0%9F%90%B3%20latest%20tag\u0026colorB=066da5\u0026query=$.results[0].name\u0026uri=https%3A%2F%2Fhub.docker.com%2Fv2%2Frepositories%2Fgtramontina%2Fsemantic-release%2Ftags\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/gtramontina/docker-semantic-release\"\u003e\u003cimg height=\"20\" alt=\"Travis\" src=\"https://img.shields.io/travis/gtramontina/docker-semantic-release.svg?style=for-the-badge\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Docker image for \u003ca href=\"https://github.com/semantic-release/semantic-release\"\u003e\u003ccode\u003esemantic-release\u003c/code\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n#### _Running:_\n\n```sh\n$ docker run --rm gtramontina/semantic-release:\u003cversion\u003e\n```\n\n**Note**: Because running `semantic-release` alone automatically runs the application, the default command in this image is `--help`. If you want to actually run `semantic-release`, run the above command with your set of arguments, or simply `--` if no arguments are needed, like so:\n\n```sh\n$ docker run --rm gtramontina/semantic-release:\u003cversion\u003e --\n```\n\n**Note 2**: You'll need to mount your `git`-based project in the container, as well as the necessary environment variables. The example below mounts the current directory as `/app` in the container and sets it as the working directory (`-w`). It also sets the required `GH_TOKEN` and `NPM_TOKEN` environment variables (because we're using the default verification/publication settings).\n\n```sh\n$ docker run --rm \\\n  -w /app \\\n  -v $(pwd):/app \\\n  -e GH_TOKEN=$GH_TOKEN \\\n  -e NPM_TOKEN=$NPM_TOKEN \\\n  gtramontina/semantic-release:\u003cversion\u003e\n```\n\n**Note 3**: If you're running `semantic-release` in Travis, AppVeyor or any other CI environment, remember to forward the relevant environment variables to your container. The following example forwards Travis' variables:\n\n```sh\n$ docker run --rm \\\n  -w /app \\\n  -v $(pwd):/app \\\n  -e GH_TOKEN=$GH_TOKEN \\\n  -e NPM_TOKEN=$NPM_TOKEN \\\n  -e TRAVIS_COMMIT=$TRAVIS_COMMIT \\\n  -e TRAVIS_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER \\\n  -e TRAVIS_BRANCH=$TRAVIS_BRANCH \\\n  -e TRAVIS_JOB_NUMBER=$TRAVIS_JOB_NUMBER \\\n  -e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST \\\n  -e TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG \\\n  -e TRAVIS_BUILD_DIR=$TRAVIS_BUILD_DIR \\\n  gtramontina/semantic-release:\u003cversion\u003e\n```\n\nAt the time of this writing, `semantic-release` was making use of [`env-ci`](https://github.com/pvdlg/env-ci) to detect CI environments. Take a look at the [environment variables it uses for your CI](https://github.com/pvdlg/env-ci/tree/master/lib) so you can forward them to your container.\n\n---\n\n#### _Developing:_\n\n```sh\n$ make build    # Builds a new image\n$ make test     # Runs/tests the image\n$ make push     # Pushes the image up\n$ make clean    # Removes any generated artifacts\n$ make clobber  # Removes artifacts and generated images\n```\n\n---\n\n\u003cp align=\"right\"\u003e🐳\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgtramontina%2Fdocker-semantic-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgtramontina%2Fdocker-semantic-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgtramontina%2Fdocker-semantic-release/lists"}