mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
added build arguments to github actions
This commit is contained in:
parent
e2ce04aa0d
commit
6b96c084c2
1 changed files with 5 additions and 3 deletions
8
.github/workflows/Deploy.yml
vendored
8
.github/workflows/Deploy.yml
vendored
|
|
@ -91,14 +91,16 @@ jobs:
|
|||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: ./model_data/simulation_system
|
||||
file: ./model_data/simulation_system/Dockerfiles/Dockerfile.prediction.lambda
|
||||
context: ./modules/ml-pipeline/src/pipeline
|
||||
file: ./deployment/Dockerfile.prediction.lambda
|
||||
push: true
|
||||
tags: ${{ steps.set_ecr_credentials.outputs.ecr_uri }}:${{ github.sha }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
platform: linux/amd64
|
||||
provenance: false
|
||||
build-args: |
|
||||
RUNTIME_ENVIRONMENT=${{ steps.set_runtime_environment.outputs.runtime_environment }}
|
||||
|
||||
- name: Deploy to AWS Lambda via Serverless
|
||||
env:
|
||||
|
|
@ -112,4 +114,4 @@ jobs:
|
|||
STACK_NAME: ${{ steps.set_stack_name.outputs.stack_name }}
|
||||
run: |
|
||||
# Deploy to AWS Lambda via Serverless
|
||||
sls deploy --config serverless.yml --stage ${{ steps.set_runtime_environment.outputs.runtime_environment }} --verbose
|
||||
sls deploy --config deployment/serverless.yml --stage ${{ steps.set_runtime_environment.outputs.runtime_environment }} --verbose
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue