Skip to content

chore: proxy content from the netlify service (#219) #36

chore: proxy content from the netlify service (#219)

chore: proxy content from the netlify service (#219) #36

Workflow file for this run

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