Skip to content

Commit ee4d7ff

Browse files
author
yuyang
committed
fixed insecure auth
1 parent 28b6749 commit ee4d7ff

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Dotamfile.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var "versions" {
22
prod = "v0.1.1"
3-
release = "v0.1.45-beta"
3+
release = "v0.1.51-beta"
44
}
55

66
temp "version.go" {

conf/config.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ func (d Docker) CreateBuildArgs() []docker.BuildArg {
9191
}
9292

9393
func (d Docker) CreateAuthConfig() docker.AuthConfiguration {
94-
auth := docker.AuthConfiguration{
95-
//Username: "",
96-
//Password: "",
97-
}
94+
auth := docker.AuthConfiguration{}
95+
// insecure registry
9896
if d.NotPrivate == true || reflect.DeepEqual(d.Auth, (Docker{}).Auth) {
9997
auth.RegistryToken = " "
100-
return auth
98+
} else {
99+
auth.Password = d.Auth.Password
100+
auth.Username = d.Auth.Username
101101
}
102102

103103
return auth

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package main
22

3-
var RELEASE_VERSION = "v0.1.45-beta"
3+
var RELEASE_VERSION = "v0.1.5-beta"

0 commit comments

Comments
 (0)