Skip to content

Commit d43ad23

Browse files
committed
fix: separate jobs
1 parent f1f9782 commit d43ad23

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
name: Deploy Lambda Service
23

34
on:
@@ -41,13 +42,19 @@ jobs:
4142
echo "image_uri_latest=$IMAGE_TAG_LATEST" >> $GITHUB_OUTPUT
4243
echo "ecr_repository=$ECR_REPOSITORY" >> $GITHUB_OUTPUT
4344
44-
- name: Build and push Docker image
45+
- name: Build Docker image
4546
id: build-image-and-push-to-ecr
4647
run: |
47-
docker buildx build --platform linux/arm64 -t ${{ vars.LAMBDA_FUNCTION_NAME }} --file Dockerfile.lambda .
48-
docker tag ${{ vars.LAMBDA_FUNCTION_NAME }}:latest ${{ steps.set-image-uris.outputs.image_uri_latest }}
48+
docker buildx build --platform linux/arm64 -t ${{ vars.LAMBDA_FUNCTION_NAME }} --file Dockerfile.lambda .
49+
docker tag ${{ vars.LAMBDA_FUNCTION_NAME }}:latest r{{ steps.set-image-uris.outputs.image_uri_latest }}
50+
51+
- name: Push Docker image
52+
id: push-docker-image
53+
run: |
54+
echo "Pushing ${{ steps.set-image-uris.outputs.image_uri_latest }}"
4955
docker push ${{ steps.set-image-uris.outputs.image_uri_latest }}
5056
57+
5158
- name: Update Lambda function
5259
run: |
5360
aws lambda update-function-code \

0 commit comments

Comments
 (0)