Skip to content

Commit

Permalink
aws cliでのログインのバグを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
inai17ibar committed Oct 21, 2023
1 parent 6515a48 commit fd9140e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-to-ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Login to ECR using AWS CLI
- name: Login to ECR
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
run: |
$(aws ecr get-login --no-include-email --region us-east-1)
echo $(aws ecr get-login-password) | docker login --username AWS --password-stdin $ECR_REGISTRY
- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: 998159020507.dkr.ecr.us-east-1.amazonaws.com
Expand Down

0 comments on commit fd9140e

Please sign in to comment.