-
Notifications
You must be signed in to change notification settings - Fork 326
38 lines (31 loc) · 1.01 KB
/
comment_resolver.yml
File metadata and controls
38 lines (31 loc) · 1.01 KB
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
34
35
36
37
38
name: Deploy Code Generation Function
on: workflow_dispatch
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Google Cloud Auth
id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_SA_CREDENTIALS }}
- name: Set up gcloud
uses: google-github-actions/setup-gcloud@v2
- name: Deploy to Cloud Functions
working-directory: functions/code_generation
run: |
gcloud functions deploy code-generation \
--gen2 \
--trigger-http \
--allow-unauthenticated \
--region=us-central1 \
--timeout=300 \
--memory=2Gi \
--runtime=python311 \
--entry-point=handle_phabricator_webhook \
--service-account=review-helper@moz-bugbug.iam.gserviceaccount.com \
--set-secrets=OPENAI_API_KEY=openai-api-key:latest