Merge pull request #2 from jbusecke/short-dynamic-example #21
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 recipes | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
types: [opened, reopened, synchronize, labeled] | |
jobs: | |
deploy-recipes: | |
name: deploy-recipes | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Authenticate to Google Cloud" | |
id: "auth" | |
uses: "google-github-actions/auth@v2" | |
with: | |
credentials_json: "${{ secrets.GCP_DATAFLOW_SERVICE_KEY }}" | |
- name: "Deploy recipes" | |
uses: "pangeo-forge/deploy-recipe-action@v0.3" | |
with: | |
select_recipe_by_label: true | |
pangeo_forge_runner_config: > | |
{ | |
"Bake": { | |
"bakery_class": "pangeo_forge_runner.bakery.dataflow.DataflowBakery" | |
}, | |
"DataflowBakery": { | |
"use_public_ips": true, | |
"service_account_email": "julius-leap-dataflow@leap-pangeo.iam.gserviceaccount.com", | |
"project_id": "leap-pangeo", | |
"temp_gcs_location": "gs://leap-scratch/data-library/temp" | |
}, | |
"TargetStorage": { | |
"fsspec_class": "gcsfs.GCSFileSystem", | |
"root_path": "gs://leap-persistent-ro/data-library/{job_name}" | |
}, | |
"InputCacheStorage": { | |
"fsspec_class": "gcsfs.GCSFileSystem", | |
"root_path": "gs://leap-scratch/data-library/cache" | |
} | |
} | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: "${{ steps.auth.outputs.credentials_file_path }}" |