fix(clustertool): fix dockerhub creds

This commit is contained in:
Kjeld Schouten
2024-10-24 14:04:22 +02:00
parent 2d388d39ba
commit d1797b19fe
+10 -11
View File
@@ -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