Add docker compose for training #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |