-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1.11 KB
/
Copy pathdeploy-playground.yml
File metadata and controls
44 lines (38 loc) · 1.11 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
43
44
name: Deploy Playground
on:
push:
branches: [master]
paths:
- 'packages/ZibStack.NET.UI/sample/SampleApi/**'
- 'packages/ZibStack.NET.Dto/src/**'
- 'packages/ZibStack.NET.UI/src/**'
- 'packages/ZibStack.NET.Core/src/**'
- 'packages/ZibStack.NET.Validation/src/**'
- 'packages/ZibStack.NET.Query/src/**'
- 'Dockerfile'
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- uses: google-github-actions/setup-gcloud@v2
- name: Deploy to Cloud Run
run: |
gcloud run deploy zibstack-playground \
--source=. \
--region=europe-central2 \
--platform=managed \
--allow-unauthenticated \
--memory=512Mi \
--cpu=1 \
--max-instances=2 \
--min-instances=0 \
--port=8080 \
--project=face2facei-ai-translator \
--quiet