Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/henrywhitaker3/ci-bump
https://github.com/henrywhitaker3/ci-bump
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/henrywhitaker3/ci-bump
- Owner: henrywhitaker3
- Created: 2024-07-05T15:01:53.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-05T20:41:00.000Z (6 months ago)
- Last Synced: 2024-07-09T08:38:35.255Z (6 months ago)
- Language: Go
- Size: 38.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CI Bump
A cli tool for incrementing semver versions in files in CI pipelines
## Usage
### YAML
To update versions in a yaml file, you can pass `yq` formatted selectors of the field to update, e.g.:
To update the patch version of the field `appVersion` in file `test.yaml`:
```
ci-bump yaml --patch '.appVersion' test.yaml
```To update the patch version of `appVersion` and `version`:
```
ci-dump yaml --patch '.appVersion' --patch '.verison' test.yaml
```To update the patch of `appVersion`, the minor version of `app.version` and the major version of `app.otherVersion`:
```
ci-dump yaml --patch '.appVersion' --minor '.app.version' --major '.app.otherVersion' test.yaml
```To set the `appVersion` field to the value `bongo`:
```
ci-bump yaml --set '.appVersion=bongo' test.yaml
```## CI
### GitHub
```yaml
- uses: henrywhitaker3/ci-bump@main
with:
cmd: ci-bump yaml --patch '.versions.app' --minor '.versions.chart' --major '.versions.lock' demo.yaml
```### GitLab
```yaml
update helm version:
image: ghcr.io/henrywhitaker3/ci-bump:latest
script:
- ci-bump --patch '.appVersion' chart/Chart.yaml
```