Skip to content

Add crop codes support and dependencies #39

Add crop codes support and dependencies

Add crop codes support and dependencies #39

Workflow file for this run

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/