Skip to content

Commit

Permalink
[CAI-252] Chatbot/deploy workflow pipeline (#1293)
Browse files Browse the repository at this point in the history
* chore(chatbot): Define IAM Role to use on chatbot deploy

* chore(chatbot): deploy workflow pipeline

* fix(chatbot): dockerfile

* fix(chatbot): update lambda image

* chore: policy

* chore: terraform fmt

* chore(chatbot): remove unused terraform tasks

* fix(chatbot): deploy pipeline env var

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

* fix: dockerfile location

---------

Co-authored-by: christian-calabrese <[email protected]>
  • Loading branch information
batdevis and christian-calabrese authored Jan 8, 2025
1 parent 7bc455d commit daaeced
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy_chatbot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ jobs:
IMAGE_TAG: ${{ github.sha }}
with:
context: apps/chatbot
file: docker/app.Dockerfile
file: apps/chatbot/docker/app.Dockerfile
push: true
tags: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
provenance: false

- name: AWS set lambda function image
run: |
aws lambda update-function-code --function-name env.CHATBOT_LAMBDA_NAME --image-uri ${{ steps.login-ecr.outputs.registry }}/chatbot:${{ github.sha }}
aws lambda update-function-code --function-name ${{ env.CHATBOT_LAMBDA_NAME }} --image-uri ${{ steps.login-ecr.outputs.registry }}/chatbot:${{ github.sha }}
manual_deploy:
name: Build and push Chatbot API lambda image (manual trigger) - (${{ inputs.environment }})
Expand Down Expand Up @@ -129,10 +129,13 @@ jobs:
IMAGE_TAG: ${{ github.sha }}
with:
context: apps/chatbot
file: apps/chatbot/docker/app.Dockerfile
push: true
tags: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
provenance: false

- name: AWS set lambda function image
env:
CHATBOT_LAMBDA_NAME: ${{ vars.CHATBOT_LAMBDA_NAME }}
run: |
aws lambda update-function-code --function-name env.CHATBOT_LAMBDA_NAME --image-uri ${{ steps.login-ecr.outputs.registry }}/chatbot:${{ github.sha }}
aws lambda update-function-code --function-name ${{ env.CHATBOT_LAMBDA_NAME }} --image-uri ${{ steps.login-ecr.outputs.registry }}/chatbot:${{ github.sha }}

0 comments on commit daaeced

Please sign in to comment.