added build arguments to github actions

This commit is contained in:
Khalim Conn-Kowlessar 2023-10-03 11:49:08 +01:00
parent e2ce04aa0d
commit 6b96c084c2

View file

@ -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