Compare commits
5 Commits
37c20aaafa
...
v0.2.1
Author | SHA1 | Date | |
---|---|---|---|
02321870b5 | |||
3e9138e05a | |||
51f9e9a776 | |||
9c202cf3e9 | |||
0f3cf0d9c4 |
@ -16,10 +16,10 @@ builds:
|
|||||||
- arm64
|
- arm64
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- format: binary
|
- format: tar.gz
|
||||||
# this name template makes the OS and Arch compatible with the results of uname.
|
# this name template makes the OS and Arch compatible with the results of uname.
|
||||||
name_template: >-
|
name_template: >-
|
||||||
{{ .ProjectName }}_{{ .Version }}_
|
{{ .ProjectName }}
|
||||||
{{- title .Os }}_
|
{{- title .Os }}_
|
||||||
{{- if eq .Arch "amd64" }}x86_64
|
{{- if eq .Arch "amd64" }}x86_64
|
||||||
{{- else if eq .Arch "386" }}i386
|
{{- else if eq .Arch "386" }}i386
|
||||||
|
@ -33,6 +33,7 @@ cmd-configs:
|
|||||||
notifications:
|
notifications:
|
||||||
- matrix
|
- matrix
|
||||||
name: backup-some-server
|
name: backup-some-server
|
||||||
|
cron: "0 0 1 * * *"
|
||||||
hostname:
|
hostname:
|
||||||
name: hostname
|
name: hostname
|
||||||
order:
|
order:
|
||||||
|
@ -209,6 +209,10 @@ func (remoteHost *Host) GetPort() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (remoteHost *Host) CombineHostNameWithPort() {
|
func (remoteHost *Host) CombineHostNameWithPort() {
|
||||||
|
port := fmt.Sprintf(":%v", remoteHost.Port)
|
||||||
|
if strings.Contains(remoteHost.HostName, port) {
|
||||||
|
return
|
||||||
|
}
|
||||||
remoteHost.HostName = fmt.Sprintf("%s:%v", remoteHost.HostName, remoteHost.Port)
|
remoteHost.HostName = fmt.Sprintf("%s:%v", remoteHost.HostName, remoteHost.Port)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user