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-User-Provide-Info # UPD HERE!
env:
FILE_NAME: user_provide_info # UPD HERE!
on:
push:
branches : [main]
paths:
- 'src/_dependencies/*'
- 'src/user_provide_info/*' # UPD HERE!
- '.github/workflows/deploy_user_provide_info.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: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
with:
version: '>= 363.0.0'
- name: 'Use gcloud CLI'
run: 'gcloud info'
- name: 'Deploy to gen2 cloud function'
run: |
gcloud functions deploy ${{ env.FILE_NAME }} \
--gen2 \
--region=europe-west3 \
--runtime=python310 \
--source=src/${{ env.FILE_NAME }} \
--entry-point=main \
--trigger-http \
--memory 256MB \
--update-labels gcf=${{ env.FILE_NAME }}