Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sator-arepo-tenet-opera-rotas authored Jan 12, 2024
1 parent cebddfc commit 1f4efae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
run: aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 926113637390.dkr.ecr.us-east-2.amazonaws.com

- name: Tag Docker Image
run: docker tag cat_tracker:latest 926113637390.dkr.ecr.us-east-2.amazonaws.com/cat_tracker:latest_ct
run: docker tag cat_tracker:latest 926113637390.dkr.ecr.us-east-2.amazonaws.com/cat_tracker:latest

- name: Deploy Image to AWS ECR
run: docker push 926113637390.dkr.ecr.us-east-2.amazonaws.com/cat_tracker:latest_ct
run: docker push 926113637390.dkr.ecr.us-east-2.amazonaws.com/cat_tracker:latest

- name: Update Lambda Function
run: |
aws lambda update-function-code --function-name prototype_cat_track --image-uri 926113637390.dkr.ecr.us-east-2.amazonaws.com/cat_tracker:latest_ct
aws lambda update-function-code --function-name prototype_cat_track --image-uri 926113637390.dkr.ecr.us-east-2.amazonaws.com/cat_tracker:latest
#- name: Deploy Lambda Function
# run: aws lambda update-function-configuration --function-name tokencount --memory-size 1024 --timeout 20

0 comments on commit 1f4efae

Please sign in to comment.