Skip to content

Setup env vars for ETL steps #10

Setup env vars for ETL steps

Setup env vars for ETL steps #10

Workflow file for this run

name: deploy-to-gcp
on:
push: {}
jobs:
deploy:
runs-on: ubuntu-latest
env:
PIP_REQUIRE_VIRTUALENV: true
permissions:
contents: read
id-token: write
actions: read
pages: write
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_dbt
- uses: google-github-actions/auth@v2
with:
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}
- uses: google-github-actions/setup-gcloud@v2
with:
version: '>= 363.0.0'
- run: |
source .venv/bin/activate
source .envs/${{ inputs.env }}.env
python etl/safety_db_to_jsonl.py
python etl/safety_jsonl_to_bq.py
with:

Check failure on line 29 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / deploy-to-gcp

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 29, Col: 9): Unexpected value 'with'
env: prod
- uses: ./.github/actions/dbt_build
with:
env: prod
- uses: actions/upload-pages-artifact@v3
with:
path: target
- uses: actions/deploy-pages@v4