mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-21 04:07:44 +02:00
Add section to build image for specific release to docker readme
This commit is contained in:
parent
474331361e
commit
76a5c1a84e
@ -68,7 +68,17 @@ You can build the image from the `master` branch with `docker` and `git` using:
|
|||||||
docker build -t 2fauth/2fauth https://github.com/Bubka/2FAuth.git
|
docker build -t 2fauth/2fauth https://github.com/Bubka/2FAuth.git
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also build a specific commit (see [master's commits](https://github.com/Bubka/2FAuth/commits/master)) by appending the commit hash with `#<commit-hash>` to the command. For example:
|
### Build the image for a specific release
|
||||||
|
|
||||||
|
You can build a [specific release](https://github.com/Bubka/2FAuth/releases) by appending the release tag with `#<release-tag>` to the command. For example:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker build -t 2fauth/2fauth https://github.com/Bubka/2FAuth.git#v2.1.0
|
||||||
|
```
|
||||||
|
|
||||||
|
### Build the image for a specific commit
|
||||||
|
|
||||||
|
You can build a specific commit (see [master's commits](https://github.com/Bubka/2FAuth/commits/master)) by appending the commit hash with `#<commit-hash>` to the command. For example:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker build -t 2fauth/2fauth https://github.com/Bubka/2FAuth.git#fba9e29bd4e3bb697296bb0bde60ae869537528b
|
docker build -t 2fauth/2fauth https://github.com/Bubka/2FAuth.git#fba9e29bd4e3bb697296bb0bde60ae869537528b
|
||||||
|
Loading…
x
Reference in New Issue
Block a user