Skip to content

Move to Neon Postgres #12

Move to Neon Postgres

Move to Neon Postgres #12

name: deploy_requeue_failed_files
on:
push:
branches:
- main
paths:
- requeue_failed_files/main.py
- requeue_failed_files/requirements.txt
- .github/workflows/deploy_requeue_failed_files.yml
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 20
if: github.ref == 'refs/heads/main'
permissions:
contents: "read"
id-token: "write"
steps:
- uses: actions/checkout@v4
- id: "auth"
uses: "google-github-actions/auth@v1"
with:
credentials_json: "${{ secrets.gcp_credentials }}"
- id: "deploy"
uses: "google-github-actions/deploy-cloud-functions@v1"
with:
name: "projects/greg-finley/locations/us-west1/functions/dropbox-requeue-failed-files"
runtime: "python310"
entry_point: "run"
source_dir: "requeue_failed_files"
memory_mb: 256
secret_environment_variables: "NEON_DATABASE_URL=projects/greg-finley/secrets/NEON_DATABASE_URL/versions/latest,DROPBOX_ACCESS_TOKEN=projects/greg-finley/secrets/DROPBOX_ACCESS_TOKEN/versions/latest,DROPBOX_CONFIG=projects/greg-finley/secrets/DROPBOX_CONFIG/versions/latest"
timeout: 540
min_instances: 0
max_instances: 1