Skip to content

Commit

Permalink
ecr img tag
Browse files Browse the repository at this point in the history
  • Loading branch information
piyush7833 committed Jun 9, 2024
1 parent 5367a69 commit 313f4b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ jobs:
ECS_TASK_DEFINITION: ${{ secrets.ECS_TASK_DEFINITION }}
ECR_IMAGE_URI: ${{ secrets.AWS_ECR_IMAGE_URL }}
run: |
aws config AWS-ACCESS-KEY-ID $AWS_ACCESS_KEY_ID set AWS-SECRET-ACCESS-KEY $AWS_SECRET_ACCESS_KEY set region $AWS_REGION set
aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --password-stdin $ECR_IMAGE_URI
docker tag piyush7833/chat-api:latest $ECR_IMAGE_URI:latest
docker push $ECR_IMAGE_URI:latest
docker tag piyush7833/chat-api:latest $ECR_IMAGE_URI/chat-api:latest
docker push $ECR_IMAGE_URI/chat-api:latest
echo "Fetching current task definition"
TASK_DEFINITION_JSON=$(aws ecs describe-task-definition --task-definition $ECS_TASK_DEFINITION)
Expand All @@ -87,6 +86,7 @@ jobs:
aws ecs update-service --cluster $ECS_CLUSTER --service $ECS_SERVICE --task-definition $NEW_TASK_DEF_ARN


# aws configure AWS-ACCESS-KEY-ID $AWS_ACCESS_KEY_ID set AWS-SECRET-ACCESS-KEY $AWS_SECRET_ACCESS_KEY set region $AWS_REGION
# deploy:
# runs-on: ubuntu-latest
# needs: build
Expand Down

0 comments on commit 313f4b4

Please sign in to comment.