Skip to content

Commit

Permalink
login before pushing to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
EC2 Default User committed Aug 16, 2022
1 parent 12b8175 commit a07a20d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@
" create_repo = ecr_client.create_repository(repositoryName=algorithm_name)\n",
" print(\"Created repo...\")\n",
"\n",
"!$(aws ecr get-login --region ${REGION} --registry-ids ${account} --no-include-email)\n",
"docker_login_str = !(aws ecr get-login --region {REGION} --no-include-email)\n",
"!{docker_login_str[0]}\n",
" \n",
"!docker tag {algorithm_name} {ecr_image}\n",
"!docker push {ecr_image}"
]
Expand Down

0 comments on commit a07a20d

Please sign in to comment.