Skip to content

Merge pull request #566 from volodkindv/554-fix-pg8000-conn #9

Merge pull request #566 from volodkindv/554-fix-pg8000-conn

Merge pull request #566 from volodkindv/554-fix-pg8000-conn #9

name: Deploy-GCF-Send-Notifications-Helper-2
on:
push:
branches : [main]
paths:
- 'src/_dependencies/*'
- 'src/send_notifications_helper_2/*' # UPD HERE!
- '.github/workflows/deploy_send_notifications_helper_2.yml' # UPD HERE!
jobs:
deploy_function:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Make dependencies
run: make dependencies
- name: Authenticate in GCP
id: auth
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.gcp_credentials }}
- name: Deploy the CF
id: deploy
uses: google-github-actions/deploy-cloud-functions@v1
with:
source_dir: src/send_notifications_helper_2 # name of directory
name: send_notifications_helper_2
runtime: python310
entry_point: main
region: europe-west3
timeout: 540
max_instances: 1
memory_mb: 256 # ex value 8192
event_trigger_type: providers/cloud.pubsub/eventTypes/topic.publish
event_trigger_resource: projects/lizaalert-bot-01/topics/topic_to_send_notifications_helper_2