-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.06 KB
/
deployer.yml
File metadata and controls
42 lines (35 loc) · 1.06 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
39
40
41
42
name: Deployment
# on commit push, run job
on:
push:
branches:
- master
jobs:
run:
# worker runs on latest ubuntu
runs-on: ubuntu-latest
environment: "deployer"
steps:
# checkout to our repository so we have access to the source code
- uses: actions/checkout@v3
- id: auth
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.gcp_credentials }}
- id: 'deploy'
uses: 'google-github-actions/deploy-cloud-functions@v0'
with:
name: 'Sakura'
project_id: 'obsequi'
region: 'us-central1'
memory_mb: 128
# runtime to use for the function
runtime: 'nodejs16'
# the function execution timeout
timeout: 40
https_trigger_security_level: 'secure_always'
deploy_timeout: 200
min_instances: 1
# the maximum number of instances for the function.
max_instances: 3000
secret_environment_variables: 'SAKURA=projects/736692187548/secrets/sakuraEnvironmentVariables/versions/latest'