Skip to content

Commit

Permalink
v0.2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbam committed Mar 15, 2021
1 parent 51af6f1 commit 2774e04
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.13
LABEL version=v0.2.14
LABEL repository="https://github.com/opspresso/action-docker"
LABEL maintainer="Jungyoul Yu <me@nalbam.com>"
LABEL homepage="https://opspresso.com/"
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.2.13
v0.2.14
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ branding:

runs:
using: docker
image: docker://opspresso/action-docker:v0.2.13
image: docker://opspresso/action-docker:v0.2.14

outputs:
TAG_NAME:
Expand Down
10 changes: 8 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,14 @@ ${AWS_REGION}
text
EOF

echo "aws ecr get-login --no-include-email"
aws ecr get-login --no-include-email | sh
# https://docs.aws.amazon.com/cli/latest/reference/ecr/get-login.html
# echo "aws ecr get-login --no-include-email"
# aws ecr get-login --no-include-email | sh

ACCOUNT_ID=$(aws sts get-caller-identity | jq .Account -r)

echo "aws ecr get-login-password ${ACCOUNT_ID} ${AWS_REGION}"
aws ecr get-login-password --region ${AWS_REGION} | docker login --username AWS --password-stdin ${ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com/

_error_check

Expand Down

0 comments on commit 2774e04

Please sign in to comment.