Added -w 0 to base64 command for credientals produce a base64 value larger than 76 charters #25

Merged
techknowlogick merged 1 commits from James712346/test-env:main into main 2023-05-03 14:23:00 +00:00
Contributor

If a username, and password that produces a base64 value larger than 76 characters, base64 will add \n to the output to wrap the text. The \n is then moved to the ~/.docker/config.json, that would break build image step producing the error of

WARNING: Error loading config file: /root/.docker/config.json: invalid character '\n' in string literal
If a username, and password that produces a base64 value larger than 76 characters, base64 will add \n to the output to wrap the text. The \n is then moved to the ~/.docker/config.json, that would break build image step producing the error of ``` WARNING: Error loading config file: /root/.docker/config.json: invalid character '\n' in string literal ```
James712346 added 1 commit 2023-05-03 04:54:54 +00:00
Added -w 0 to base64 command for credientals produce a base64 value larger than 76 charters
If a username, and password that produces a base64 value larger than 76 characters, base64 will add \n to the output to wrap the text. The \n is then moved to the ~/.docker/config.json, that would break build image step producing the error of 
```
WARNING: Error loading config file: /root/.docker/config.json: invalid character '\n' in string literal
```
All checks were successful
ci / docker (2.40.0, 1.20, 1.52.2) (pull_request) Successful in 5m8s
ci / docker (2.40.0, 1.19, 1.52.2) (pull_request) Successful in 7m55s
bb7694bba4
techknowlogick approved these changes 2023-05-03 14:21:57 +00:00

Thanks!

Thanks!
techknowlogick merged commit 7d38483860 into main 2023-05-03 14:23:00 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/test-env#25
No description provided.