diff --git a/.github/workflows/deploy-to-ecr.yml b/.github/workflows/deploy-to-ecr.yml index b0bd5b4..8f35dde 100644 --- a/.github/workflows/deploy-to-ecr.yml +++ b/.github/workflows/deploy-to-ecr.yml @@ -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