File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -386,4 +386,4 @@ executors:
386
386
machine :
387
387
image : ubuntu-2204:current
388
388
docker_layer_caching : true
389
- resource_class : arm.medium
389
+ resource_class : arm.medium
Original file line number Diff line number Diff line change @@ -47,11 +47,17 @@ configure_config_json(){
47
47
install_aws_ecr_credential_helper (){
48
48
echo " Installing AWS ECR Credential Helper..."
49
49
if [[ " $SYS_ENV_PLATFORM " = " linux" ]]; then
50
- $SUDO apt update
51
- $SUDO apt install amazon-ecr-credential-helper
50
+ HELPER_INSTALLED=$( dpkg --get-selections | (grep amazon-ecr-credential-helper || test $? ) | awk ' {print $2}' )
51
+ if [[ " $HELPER_INSTALLED " != " install" ]]; then
52
+ $SUDO apt update
53
+ $SUDO apt install amazon-ecr-credential-helper
54
+ fi
52
55
configure_config_json
53
56
elif [[ " $SYS_ENV_PLATFORM " = " macos" ]]; then
54
- brew install docker-credential-helper-ecr
57
+ HELPER_INSTALLED=$( brew list -q | grep -q docker-credential-helper-ecr || test $? )
58
+ if [[ " $HELPER_INSTALLED " -ne 0 ]]; then
59
+ brew install docker-credential-helper-ecr
60
+ fi
55
61
configure_config_json
56
62
else
57
63
docker logout " ${AWS_ECR_VAL_ACCOUNT_URL} "
You can’t perform that action at this time.
0 commit comments