From 7c9c74dd3639751026796d72afdf47dec36b1e3a Mon Sep 17 00:00:00 2001 From: Simon Alibert Date: Fri, 24 Nov 2023 16:44:25 +0100 Subject: [PATCH] :green_heart: Fixed typo and split push and update steps --- .github/workflows/deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 05a999f..d1c00ec 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,6 +43,10 @@ jobs: run: | docker build --platform linux/amd64 -t $ECR_REGISTRY/inews:latest . docker push $ECR_REGISTRY/inews:latest + - name: Updating lambda + env: + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} + run: | aws lambda update-function-code \ --function-name inews \ - --image-uri $ECR_REGISTRY }}/inews:latest > /dev/null + --image-uri $ECR_REGISTRY/inews:latest > /dev/null