diff --git a/Dockerfile b/Dockerfile index 6356fb1..9afa29a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ LABEL "com.github.actions.description"="build, tag and pushes the container" LABEL "com.github.actions.icon"="anchor" LABEL "com.github.actions.color"="blue" -LABEL version=v0.1.5 +LABEL version=v0.1.6 LABEL repository="https://github.com/opspresso/action-docker" LABEL maintainer="Jungyoul Yu " LABEL homepage="https://opspresso.com/" diff --git a/VERSION b/VERSION index 027a383..82942c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.1.5 +v0.1.6 diff --git a/entrypoint.sh b/entrypoint.sh index 8900d39..4cdb2be 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -24,14 +24,6 @@ _aws_pre() { if [ -z "${AWS_REGION}" ]; then AWS_REGION="us-east-1" fi - - # aws credentials - aws configure <<-EOF > /dev/null 2>&1 -${AWS_ACCESS_KEY_ID} -${AWS_SECRET_ACCESS_KEY} -${AWS_REGION} -text -EOF } _ecr_pre() { @@ -66,6 +58,14 @@ _ecr_pre() { _ecr() { _ecr_pre + # aws credentials + aws configure <<-EOF > /dev/null 2>&1 +${AWS_ACCESS_KEY_ID} +${AWS_SECRET_ACCESS_KEY} +${AWS_REGION} +text +EOF + echo "aws ecr get-login --no-include-email" aws ecr get-login --no-include-email | sh