Skip to content

Move to aiven

Move to aiven #13

Workflow file for this run

name: deploy
on:
push:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
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-central1/functions/check-oldest-living-person"
runtime: "python311"
entry_point: "main"
source_dir: "oldest"
memory_mb: 512
secret_environment_variables: "MYSQL_CONFIG=projects/greg-finley/secrets/MYSQL_CONFIG/versions/latest"
event_trigger_type: "providers/cloud.pubsub/eventTypes/topic.publish"
event_trigger_resource: "projects/greg-finley/topics/oldest-living-person"
event_trigger_service: "pubsub.googleapis.com"
timeout: 60
min_instances: 0
max_instances: 1