File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ Order : 50
3
+ Title : Docker
4
+ Description : |
5
+ Use GitVersion through one of its many published Docker containers.
6
+ ---
7
+
8
+ GitVersion can be used through one of its many published Docker
9
+ containers. The list of available containers can be found on
10
+ [ Docker Hub] [ docker-hub ] . Once you've found the image you want to use,
11
+ you can run it like this:
12
+
13
+ ``` shell
14
+ docker run --rm --volume " $( pwd) :/repo" gittools/gitversion:6.0.0-fedora.36-6.0 /repo
15
+ ```
16
+
17
+ The above command will run GitVersion with the current directory
18
+ mapped to ` /repo ` inside the container (the ` --volume "$(pwd):/repo" `
19
+ part). The ` /repo ` directory is then passed in as the argument
20
+ GitVersion should use to calculate the version.
21
+
22
+ The ` --rm ` flag will remove the container after it has finished
23
+ running.
24
+
25
+ [ Explore GitVersion on Docker Hub] [ docker-hub ] {.btn .btn-primary}
26
+
27
+ [ docker-hub ] : https://hub.docker.com/r/gittools/gitversion
You can’t perform that action at this time.
0 commit comments