first commit #1
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 new production model | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Evaluate model and deploy to production if successful | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: <YOUR SERVICE PRINCIPAL ROLE ARN> | |
aws-region: us-west-2 | |
- run: aws sts get-caller-identity | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.10' | |
- name: Install Outerbounds | |
run: | | |
python3 -m pip install --user outerbounds | |
- name: Test flow | |
env: | |
METAFLOW_HOME: /tmp/.metaflowconfig | |
run: | | |
<YOUR OB CONFIGURE COMMAND FOR SERVICE PRINCIPALS> | |
python evaluate_new_model_flow.py run --with card |