Merge pull request #163 from martincollignon/feature/add-dask-parallel #40
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: Sync Files to GCS | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'backend/dataflow/**' | |
- 'backend/requirements.txt' | |
- 'backend/Dockerfile.processing' | |
workflow_dispatch: | |
jobs: | |
sync-to-gcs: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- uses: actions/checkout@v4 | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
credentials_json: '${{ secrets.GCP_SA_KEY }}' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v2' | |
- name: 'Upload Files' | |
run: | | |
# Sync processing files | |
cd backend | |
gsutil -m rsync -d -r dataflow/ gs://landbrugsdata-processing/dataflow/ | |
gsutil cp requirements.txt gs://landbrugsdata-processing/dataflow/ | |
gsutil cp Dockerfile.processing gs://landbrugsdata-processing/dataflow/ | |
gsutil cp dataflow/setup.py gs://landbrugsdata-processing/dataflow/ |