mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-20 01:38:29 +00:00
Actually base64 credentials for docker
This commit is contained in:
parent
8fdc60cc52
commit
aea228f816
@ -12,7 +12,7 @@ return_if_impacted_targets_empty
|
|||||||
aws eks --region us-east-2 update-kubeconfig --name peridot-T8WbrA
|
aws eks --region us-east-2 update-kubeconfig --name peridot-T8WbrA
|
||||||
|
|
||||||
AWS_JWT="$(aws ecr get-login-password --region us-east-2)"
|
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
|
mkdir -p ~/.docker
|
||||||
echo '{"auths":{"893168113496.dkr.ecr.us-east-2.amazonaws.com":{"auth":"'"$B64_AWS_AUTH"'"}}}' > ~/.docker/config.json
|
echo '{"auths":{"893168113496.dkr.ecr.us-east-2.amazonaws.com":{"auth":"'"$B64_AWS_AUTH"'"}}}' > ~/.docker/config.json
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ $BAZEL_B //:bazel-diff
|
|||||||
BASE_HASH="$PULL_BASE_SHA"
|
BASE_HASH="$PULL_BASE_SHA"
|
||||||
TARGET_HASH="$PULL_PULL_SHA"
|
TARGET_HASH="$PULL_PULL_SHA"
|
||||||
if [[ -z "$TARGET_HASH" ]]; then
|
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"
|
TARGET_HASH="$PULL_BASE_SHA"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user