Skip to content

Commit

Permalink
fix(clustertool): fix dockerhub creds
Browse files Browse the repository at this point in the history
  • Loading branch information
PrivatePuffin committed Oct 24, 2024
1 parent 2d388d3 commit d1797b1
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions clustertool/pkg/initfiles/initfiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,17 +288,16 @@ func setDocker() {
// Prepare the content to append
configContent := fmt.Sprintf(`# Add Dockerhub Login
- op: add
path: /machine/registries/config/registry-1.docker.io/auth/username
value: "%s"
- op: add
path: /machine/registries/config/registry-1.docker.io/auth/password
value: "%s"
- op: add
path: /machine/registries/config/docker.io/auth/username
value: "%s"
- op: add
path: /machine/registries/config/docker.io/auth/password
value: "%s"
path: /machine/registries/config
value:
registry-1.docker.io:
auth:
username: "%s"
password: "%s"
docker.io:
auth:
username: "%s"
password: "%s"
`, helper.TalEnv["DOCKERHUB_USER"], helper.TalEnv["DOCKERHUB_PASSWORD"], helper.TalEnv["DOCKERHUB_USER"], helper.TalEnv["DOCKERHUB_PASSWORD"])

// Open the file in append mode or create it if it doesn't exist
Expand Down

0 comments on commit d1797b1

Please sign in to comment.