Merge pull request #3 from padmanabhan-r/feat/landing-page-new-chars #1
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 to Cloud Run | |
| on: | |
| push: | |
| branches: [main] | |
| env: | |
| PROJECT_ID: project-a8efccb1-2720-4a48-948 | |
| REGION: us-central1 | |
| IMAGE: us-central1-docker.pkg.dev/project-a8efccb1-2720-4a48-948/taleweaver/backend | |
| SERVICE: taleweaver-backend | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Authenticate to Google Cloud | |
| uses: google-github-actions/auth@v2 | |
| with: | |
| credentials_json: ${{ secrets.GCP_SA_KEY }} | |
| - name: Set up gcloud | |
| uses: google-github-actions/setup-gcloud@v2 | |
| - name: Configure Docker for Artifact Registry | |
| run: gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet | |
| - name: Build and push image | |
| run: | | |
| docker build \ | |
| --platform linux/amd64 \ | |
| -t $IMAGE:${{ github.sha }} \ | |
| -t $IMAGE:latest \ | |
| . | |
| docker push $IMAGE:${{ github.sha }} | |
| docker push $IMAGE:latest | |
| - name: Deploy to Cloud Run | |
| run: | | |
| gcloud run deploy $SERVICE \ | |
| --image=$IMAGE:${{ github.sha }} \ | |
| --region=$REGION \ | |
| --platform=managed \ | |
| --allow-unauthenticated \ | |
| --timeout=3600 \ | |
| --memory=1Gi \ | |
| --cpu=2 \ | |
| --concurrency=80 \ | |
| --set-env-vars="GOOGLE_CLOUD_PROJECT=$PROJECT_ID,GOOGLE_CLOUD_LOCATION=us-central1,IMAGE_MODEL=imagen-3.0-fast-generate-001,IMAGE_LOCATION=us-central1" |