File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,17 @@ pub async fn build_image(
55
55
. with_context ( || "could not create image context tarball" ) ?;
56
56
let tarball = tar. into_inner ( ) ?;
57
57
58
+ let credentials = bollard:: auth:: DockerCredentials {
59
+ username : Some ( "detjensrobert" . to_string ( ) ) ,
60
+ password : Some ( "60989d59-d225-4b83-852a-9896099cb300" . to_string ( ) ) ,
61
+ ..Default :: default ( )
62
+ } ;
63
+
64
+ let mut creds_hsh = std:: collections:: HashMap :: new ( ) ;
65
+ creds_hsh. insert ( "docker.io" . to_string ( ) , credentials) ;
66
+
58
67
// send to docker daemon
59
- let mut build_stream = client. build_image ( build_opts, None , Some ( tarball. into ( ) ) ) ;
68
+ let mut build_stream = client. build_image ( build_opts, Some ( creds_hsh ) , Some ( tarball. into ( ) ) ) ;
60
69
61
70
// stream output to stdout
62
71
while let Some ( item) = build_stream. next ( ) . await {
You can’t perform that action at this time.
0 commit comments