Deploy #73
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 | |
on: | |
workflow_dispatch: | |
inputs: | |
MODELS: | |
description: 'Models to deploy (space separated)' | |
required: true | |
type: string | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: pip install openmapflow[data]==0.2.3 'dvc[gs]' | |
- uses: google-github-actions/auth@v0 | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: Set up Cloud SDK | |
uses: google-github-actions/setup-gcloud@v0 | |
- uses: iterative/setup-dvc@v1 | |
- name: Get latest models | |
run: dvc pull data/models -f | |
- name: Deploy Google Cloud Architecture | |
env: | |
OPENMAPFLOW_MODELS: ${{ inputs.MODELS }} | |
run: openmapflow deploy |