|
1 | | -# commitizen-docker-image |
| 1 | +# commitizen-docker-image |
| 2 | + |
| 3 | +> commitizen now avaialble in docker 💪 |
| 4 | + |
| 5 | +## Docker images |
| 6 | + |
| 7 | +We publish only major versions starting with `v2`. |
| 8 | + |
| 9 | +| Tag | Description | |
| 10 | +| ------------------------------ | -------------------------------------- | |
| 11 | +| `commitizen/commitizen:latest` | Latest major version, at the moment v2 | |
| 12 | +| `commitizen/commitizen:2` | Points to latest v2 | |
| 13 | + |
| 14 | +## Usage |
| 15 | + |
| 16 | +## As Script |
| 17 | + |
| 18 | +```bash |
| 19 | +docker run --rm -v $(pwd):/usr/src/project commitizen/commitizen:latest /bin/sh -c 'cz bump --changelog' |
| 20 | +``` |
| 21 | + |
| 22 | +## Inside container |
| 23 | + |
| 24 | +Open a terminal inside docker with `cz` available and with the current directory mounted. |
| 25 | +This way we can run any `cz` command. |
| 26 | + |
| 27 | +```bash |
| 28 | +docker run --rm -it -v $(pwd):/usr/src/project commitizen/commitizen:latest |
| 29 | +``` |
| 30 | + |
| 31 | +## Contributing |
| 32 | + |
| 33 | +### Build and push image |
| 34 | + |
| 35 | +```bash |
| 36 | +./scripts/build |
| 37 | +./scripts/push |
| 38 | +``` |
| 39 | + |
| 40 | +### Test locally |
| 41 | + |
| 42 | +```bash |
| 43 | +./scripts/build |
| 44 | +./scripts/run 'cz ls' |
| 45 | +``` |
0 commit comments