mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
docs: Add {{ .Version }} variable into Artifactory docs
The target of the Artifactory configuration supports variables. Now the {{ .Version }} variable is also used in the docs
This commit is contained in:
parent
024ca0a1af
commit
b282c84df3
@ -17,7 +17,7 @@ upload target and a usernameto your `.goreleaser.yml` file:
|
||||
|
||||
```yaml
|
||||
artifactories:
|
||||
- target: http://<Your-Instance>:8081/artifactory/example-repo-local/{{ .ProjectName }}/{{ .Os }}/{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}
|
||||
- target: http://<Your-Instance>:8081/artifactory/example-repo-local/{{ .ProjectName }}/{{ .Version }}/{{ .Os }}/{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}
|
||||
username: goreleaser
|
||||
```
|
||||
|
||||
@ -33,13 +33,13 @@ The `target` is the final URL of _without_ the binary name.
|
||||
A configuration for `goreleaser` with the target
|
||||
|
||||
```
|
||||
http://artifacts.company.com:8081/artifactory/example-repo-local/{{ .ProjectName }}/{{ .Os }}/{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}
|
||||
http://artifacts.company.com:8081/artifactory/example-repo-local/{{ .ProjectName }}/{{ .Version }}/{{ .Os }}/{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}
|
||||
```
|
||||
|
||||
will result in a final deployment like
|
||||
|
||||
```
|
||||
http://artifacts.company.com:8081/artifactory/example-repo-local/goreleaser/Darwin/x86_64/goreleaser
|
||||
http://artifacts.company.com:8081/artifactory/example-repo-local/goreleaser/1.0.0/Darwin/x86_64/goreleaser
|
||||
```
|
||||
|
||||
Support variables:
|
||||
@ -71,7 +71,7 @@ artifactories:
|
||||
# You can have multiple Artifactory instances.
|
||||
-
|
||||
# URL of your Artifactory instance + path to deploy to
|
||||
target: http://artifacts.company.com:8081/artifactory/example-repo-local/{{ .ProjectName }}/{{ .Os }}/{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}
|
||||
target: http://artifacts.company.com:8081/artifactory/example-repo-local/{{ .ProjectName }}/{{ .Version }}/{{ .Os }}/{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}
|
||||
# User that will be used for the deployment
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user