-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 940 Bytes
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy
on:
push: ~
pull_request:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: 'actions/checkout@v4'
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ vars.GCP_SERVICE_ACCOUNT }}
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Run image
uses: abatilo/actions-poetry@v2
- name: Generate Requirements
run: poetry export --output=requirements.txt
- id: 'deploy'
uses: 'google-github-actions/deploy-cloud-functions@v1'
with:
name: ${{ vars.GCP_CLOUD_FUNCTION_NAME }}
runtime: 'python311'
entry_point: "update"