chore: proxy content from the netlify service (#219) #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |