File tree Expand file tree Collapse file tree 4 files changed +42
-8
lines changed Expand file tree Collapse file tree 4 files changed +42
-8
lines changed Original file line number Diff line number Diff line change 1- # !/usr/bin/pwsh
1+ # !/usr/bin/env pwsh
22<#
33. PARAMETER Stage
44The build stage to execute.
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
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ patch releases, it's a useful option to some.
1515
1616:::{.alert .alert-warning}
1717** Warning**
18-
19- We are not semantically versioning this library and it should be considered
20- unstable .
18+ The library API is not stable and does not follow the semantic versioning
19+ of the GitVersion tool. A patch release of the tool may break the library
20+ and we will refactor and change the library API without notice .
2121:::
2222
2323<a href =" /api " class =" btn btn-primary " >Explore the GitVersion library API</a >
Original file line number Diff line number Diff line change @@ -17,28 +17,35 @@ expected.
1717
1818## Serving the documentation locally
1919
20- To serve up the documentation locally, you need to run the script
20+ To serve up the documentation locally, you need to run the following
21+ commands:
2122
2223``` shell
24+ ./build.ps1 -Stage build -Target PrepareBuild
25+ ./build.ps1 -Stage build -Target Build
2326./build.ps1 -Stage docs -Target PreviewDocs
2427```
2528
2629### On Windows
2730
28- On Windows, you need to run the following build command in a PowerShell
31+ On Windows, you need to run the following commands in a PowerShell
2932terminal:
3033
3134``` shell
35+ ./build.ps1 -Stage build -Target PrepareBuild
36+ ./build.ps1 -Stage build -Target Build
3237./build.ps1 -Stage docs -Target PreviewDocs
3338```
3439
3540### On Unix
3641
3742First you need to [ install PowerShell on macOS] [ ps-mac ] or [ Linux] [ ps-linux ] ,
38- then execute the following command :
43+ then execute the following commands :
3944
4045``` shell
41- pwsh ./build.ps1 -Stage docs -Target PreviewDocs
46+ ./build.ps1 -Stage build -Target PrepareBuild
47+ ./build.ps1 -Stage build -Target Build
48+ ./build.ps1 -Stage docs -Target PreviewDocs
4249```
4350
4451After pressing enter, the documentation will be generated and then served under
You can’t perform that action at this time.
0 commit comments