Skip to content

Commit d9d60df

Browse files
committed
doc: Document oneliner to create Git Tag
Signed-off-by: Manuel Hutter <manuel@hutter.io>
1 parent da7c9fb commit d9d60df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ To publish a new release, simply create & push a new Git Tag.
4141

4242
NOTE: Tags should follow the included CRS version. Use the build number to signify changes to the images with the same CRS number, e.g. `v4.3.0-0` -> `v4.3.0-1`.
4343

44+
One-Liner to create a Tag:
45+
46+
```sh
47+
tag="v$(grep '^FROM ' Dockerfile| cut -d':' -f2 | cut -d'-' -f1)-0"; git tag -s "$tag" -m "$tag"
48+
```
49+
50+
Don't forget to `git push --tags` afterwards!
51+
4452
## Configuration
4553

4654
Most aspects can be configured using environment variables.

0 commit comments

Comments
 (0)