mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added github sha to docker tag
This commit is contained in:
parent
96ac0135e9
commit
238bea1f39
1 changed files with 3 additions and 3 deletions
6
.github/workflows/deploy_fastapi_backend.yml
vendored
6
.github/workflows/deploy_fastapi_backend.yml
vendored
|
|
@ -69,7 +69,7 @@ jobs:
|
|||
|
||||
- name: Build Docker Image
|
||||
run: |
|
||||
docker build -t my-lambda-image:latest -f backend/docker/lambda.Dockerfile .
|
||||
docker build -t fastapi-lambda-image:${{ github.sha }} -f backend/docker/lambda.Dockerfile .
|
||||
|
||||
- name: Login to ECR
|
||||
run: |
|
||||
|
|
@ -77,8 +77,8 @@ jobs:
|
|||
|
||||
- name: Tag and Push Docker Image to ECR
|
||||
run: |
|
||||
docker tag my-lambda-image:latest ${{ steps.set_ecr_credentials.outputs.ecr_uri }}:latest
|
||||
docker push ${{ steps.set_ecr_credentials.outputs.ecr_uri }}:latest
|
||||
docker tag fastapi-lambda-image:${{ github.sha }} ${{ steps.set_ecr_credentials.outputs.ecr_uri }}:${{ github.sha }}
|
||||
docker push ${{ steps.set_ecr_credentials.outputs.ecr_uri }}:${{ github.sha }}
|
||||
|
||||
- name: Deploy to AWS Lambda via Serverless
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue