Skip to content

Commit

Permalink
Use GitHub Action Environment File
Browse files Browse the repository at this point in the history
  • Loading branch information
donofriov committed Nov 15, 2022
1 parent 2c61e60 commit 3147758
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ function login() {
if [ "${INPUT_REGISTRY_IDS}" == "" ]; then
INPUT_REGISTRY_IDS=$INPUT_ACCOUNT_ID
fi

for i in ${INPUT_REGISTRY_IDS//,/ }
do
aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $i.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com
done

echo "== FINISHED LOGIN"
}

Expand Down Expand Up @@ -151,7 +151,7 @@ function docker_push_to_ecr() {
local DOCKER_TAGS=$(echo "$TAG" | tr "," "\n")
for tag in $DOCKER_TAGS; do
docker push $2/$INPUT_REPO:$tag
echo ::set-output name=image::$2/$INPUT_REPO:$tag
echo name=image::$2/$INPUT_REPO:$tag >> $GITHUB_OUTPUT
done
echo "== FINISHED PUSH TO ECR"
}
Expand Down

0 comments on commit 3147758

Please sign in to comment.