{"id":18816008,"url":"https://github.com/0-vortex/eclass-docker-fork","last_synced_at":"2026-01-14T06:30:18.086Z","repository":{"id":74182015,"uuid":"433939707","full_name":"0-vortex/eclass-docker-fork","owner":"0-vortex","description":"Opinionated fork of @eclass/semantic-release-docker with minimal features","archived":false,"fork":false,"pushed_at":"2021-12-03T20:47:30.000Z","size":1169,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T18:16:06.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0-vortex.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2021-12-01T18:24:58.000Z","updated_at":"2021-12-12T02:43:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"506aaa4e-5655-4eb7-b369-668bffc3da79","html_url":"https://github.com/0-vortex/eclass-docker-fork","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0-vortex%2Feclass-docker-fork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0-vortex%2Feclass-docker-fork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0-vortex%2Feclass-docker-fork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0-vortex%2Feclass-docker-fork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0-vortex","download_url":"https://codeload.github.com/0-vortex/eclass-docker-fork/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239753703,"owners_count":19691160,"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-11-07T23:51:49.449Z","updated_at":"2026-01-14T06:30:18.032Z","avatar_url":"https://github.com/0-vortex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eclass-docker-fork\n\n[![npm](https://img.shields.io/npm/v/eclass-docker-fork.svg)](https://www.npmjs.com/package/eclass-docker-fork)\n![Node.js CI](https://github.com/eclass/semantic-release-docker/workflows/Node.js%20CI/badge.svg)\n[![downloads](https://img.shields.io/npm/dt/eclass-docker-fork.svg)](https://www.npmjs.com/package/eclass-docker-fork)\n[![dependencies](https://img.shields.io/david/eclass/semantic-release-docker.svg)](https://david-dm.org/eclass/semantic-release-docker)\n[![devDependency Status](https://img.shields.io/david/dev/eclass/semantic-release-docker.svg)](https://david-dm.org/eclass/semantic-release-docker#info=devDependencies)\n[![Coverage Status](https://coveralls.io/repos/github/eclass/semantic-release-docker/badge.svg?branch=master)](https://coveralls.io/github/eclass/semantic-release-docker?branch=master)\n[![Maintainability](https://api.codeclimate.com/v1/badges/88355a0bbb92e6a01834/maintainability)](https://codeclimate.com/github/eclass/semantic-release-docker/maintainability)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n\u003e [semantic-release](https://github.com/semantic-release/semantic-release) plugin to tag and push docker images\n\n| Step               | Description                                                                            |\n| ------------------ | -------------------------------------------------------------------------------------- |\n| `verifyConditions` | Verify the presence of the `baseImageName`, and `registries` options in plugin config. |\n| `prepare`          | Tag docker images.                                                                     |\n| `publish`          | Push docker images.                                                                    |\n\n## Install\n\n```bash\nnpm i -D eclass-docker-fork\n```\n\n## Usage\n\nThe plugin can be configured in the [**semantic-release** configuration file](https://github.com/semantic-release/semantic-release/blob/caribou/docs/usage/configuration.md#configuration):\n\n```json\n{\n  \"plugins\": [\n    \"@semantic-release/changelog\",\n    \"@semantic-release/npm\",\n    \"@semantic-release/git\",\n    \"@semantic-release/gitlab\",\n    \"eclass-docker-fork\"\n  ]\n}\n```\n\n## Configuration\n\n### Options\n\n#### Config\n\n| Variable         | Description |\n| ---------------- | ----------- |\n| `baseImageName`  | Name of the previously constructed docker image. Required. |\n| `registries`     | Array of [Registry](#registry) objects. Required. Example: {\"user\": \"DOCKER_USER\", \"password\": \"DOCKER_PASSWORD\", \"url\": \"docker.pkg.github.com\", \"imageName\": \"docker.pkg.github.com/myuser/myrepo/myapp\"} |\n| `additionalTags` | Array of additional tags to push. Optional. Example: `[\"beta\", \"next\"]` |\n\n#### Registry\n\n| Variable         | Description |\n| ---------------- | ----------- |\n| url              | Url of the docker registry. Required. Example: `\"docker.pkg.github.com\"` |\n| imageName        | Name of the docker image. Required. Example: `\"docker.pkg.github.com/myuser/myrepo/myapp\"` |\n| user             | Name of the environment variable used as user name for login to the docker registry. Required. Example: `\"DOCKER_USER\"` |\n| password         | Name of the environment variable used as password for login to the docker registry. Required. Example: `\"DOCKER_PASSWORD\"` |\n| skipTags         | Array of image tags that should not be pushed to the docker registry. Optional. Example: `[\"latest\"]` |\n\n### Environment variables\n\nEnvironment variables are variables. Depends of `registries` option.\n\n| Variable                | Description                   |\n| ----------------------- | ----------------------------- |\n| `DOCKER_USER`           | username for docker registry. |\n| `DOCKER_PASSWORD`       | password for docker registry. |\n\n### Examples\n\nPush images to many docker registry\n\n```json\n{\n  \"plugins\": [\n    \"@semantic-release/changelog\",\n    \"@semantic-release/npm\",\n    \"@semantic-release/git\",\n    \"@semantic-release/gitlab\",\n    [\n      \"eclass-docker-fork\",\n      {\n        \"baseImageName\": \"myapp\",\n        \"registries\": [\n          {\n            \"url\": \"registry.gitlab.com\",\n            \"imageName\": \"registry.gitlab.com/mygroup/myapp\",\n            \"user\": \"CI_REGISTRY_USER\",\n            \"password\": \"CI_REGISTRY_PASSWORD\"\n          },\n          {\n            \"url\": \"docker.io\",\n            \"imageName\": \"docker.io/myuser/myapp\",\n            \"user\": \"DOCKER_REGISTRY_USER\",\n            \"password\": \"DOCKER_REGISTRY_PASSWORD\"\n          },\n          {\n            \"url\": \"docker.pkg.github.com\",\n            \"imageName\": \"docker.pkg.github.com/myuser/myrepo/myapp\",\n            \"user\": \"GITHUB_USER\",\n            \"password\": \"GITHUB_TOKEN\"\n          },\n          {\n            \"url\": \"123456789012.dkr.ecr.us-east-1.amazonaws.com\",\n            \"imageName\": \"123456789012.dkr.ecr.us-east-1.amazonaws.com/myapp\",\n            \"user\": \"AWS_DOCKER_USER\",\n            \"password\": \"AWS_DOCKER_PASSWORD\",\n            \"skipTags\": [\"latest\"]\n          }\n        ],\n        \"additionalTags\": [\"next\", \"beta\"]\n      }\n    ]\n  ]\n}\n```\n\n```yml\n# .gitlab-ci.yml\nrelease:\n  image: node:alpine\n  stage: release\n  before_script:\n    - docker build -t myapp .\n  script:\n    - npx semantic-release\n  only:\n    - master\n```\n\n```yml\n# .travis.yml\nlanguage: node_js\ncache:\n  directories:\n    - ~/.npm\nnode_js:\n  - '12'\nstages:\n  - test\n  - name: deploy\n    if: branch = master\njobs:\n  include:\n    - stage: test\n      script: npm t\n    - stage: deploy\n      before_script: docker build -t myapp .\n      script: npx semantic-release\n```\n\n## License\n\n[MIT](https://tldrlegal.com/license/mit-license)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0-vortex%2Feclass-docker-fork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0-vortex%2Feclass-docker-fork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0-vortex%2Feclass-docker-fork/lists"}