Skip to content

Add docker compose for training #2

Add docker compose for training

Add docker compose for training #2

Workflow file for this run

name: deploy-prod
on:
push:
branches:
- main
paths:
- 'sagemaker_scripts/**'
jobs:
digit-classification:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy model
run: |
cd sagemaker_scripts && docker build -t deploy-sagemaker -f Dockerfile.deploy . \
&& docker run \
-e AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} \
-e AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} \
-e AWS_DEFAULT_REGION=${{ secrets.AWS_DEFAULT_REGION }} \
-e ENV=prod \
-e SM_ARN_ROLE=${{ secrets.SM_ARN_ROLE }} \
deploy-sagemaker python deploy_sagemaker.py --config models/digit_classification.yaml