Actually base64 credentials for docker

This commit is contained in:
Mustafa Gezen 2022-11-01 04:29:54 +01:00
parent 8fdc60cc52
commit aea228f816
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ return_if_impacted_targets_empty
aws eks --region us-east-2 update-kubeconfig --name peridot-T8WbrA
AWS_JWT="$(aws ecr get-login-password --region us-east-2)"
B64_AWS_AUTH="$(echo -n "AWS:$AWS_JWT")"
B64_AWS_AUTH="$(echo -n "AWS:$AWS_JWT" | base64)"
mkdir -p ~/.docker
echo '{"auths":{"893168113496.dkr.ecr.us-east-2.amazonaws.com":{"auth":"'"$B64_AWS_AUTH"'"}}}' > ~/.docker/config.json

View File

@ -12,7 +12,7 @@ $BAZEL_B //:bazel-diff
BASE_HASH="$PULL_BASE_SHA"
TARGET_HASH="$PULL_PULL_SHA"
if [[ -z "$TARGET_HASH" ]]; then
BASE_HASH="$(git log --pretty=format:"%H" --merges -n 1)"
BASE_HASH="$(git log "HEAD@{1}" --pretty=format:"%H" --merges -n 1)"
TARGET_HASH="$PULL_BASE_SHA"
fi