-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (38 loc) · 1.12 KB
/
deploy_gcs.yml
File metadata and controls
45 lines (38 loc) · 1.12 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
45
name: Deploy nginx proxy to Cloud Run
on:
push:
branches: [main]
paths:
- 'ci/nginx-rewrite/**'
workflow_dispatch:
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GSA_JSON }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: Build nginx container
run: |
cd ci/nginx-rewrite
gcloud builds submit --tag gcr.io/interledger-websites/nginx-rewrite:latest .
- name: Deploy to Cloud Run
run: |
gcloud run deploy nginx-rewrite \
--image gcr.io/interledger-websites/nginx-rewrite:latest \
--platform managed \
--region us-central1 \
--allow-unauthenticated \
--port 8080 \
--memory 512Mi \
--cpu 1 \
--min-instances 0 \
--max-instances 10 \
--quiet