File tree Expand file tree Collapse file tree 1 file changed +0
-36
lines changed
Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -181,42 +181,6 @@ jobs:
181181 with :
182182 sarif_file : ' trivy-results.sarif'
183183
184- # Deploy to staging (example for Cloud Run)
185- deploy-staging :
186- name : Deploy to Staging
187- runs-on : ubuntu-latest
188- needs : [build, security]
189- if : github.ref == 'refs/heads/develop' && github.event_name == 'push'
190- environment :
191- name : staging
192- url : ${{ steps.deploy.outputs.url }}
193- steps :
194- - name : Checkout code
195- uses : actions/checkout@v4
196-
197- - name : Authenticate to Google Cloud
198- uses : google-github-actions/auth@v2
199- with :
200- credentials_json : ${{ secrets.GCP_SA_KEY_STAGING }}
201-
202- - name : Set up Cloud SDK
203- uses : google-github-actions/setup-gcloud@v2
204-
205- - name : Deploy to Cloud Run
206- id : deploy
207- run : |
208- gcloud run deploy supply-graph-ai-staging \
209- --image ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:develop \
210- --region us-central1 \
211- --platform managed \
212- --allow-unauthenticated \
213- --set-env-vars ENVIRONMENT=staging \
214- --set-secrets API_KEYS=api-keys:latest \
215- --memory 512Mi \
216- --cpu 1 \
217- --timeout 300 \
218- --max-instances 10 \
219- --min-instances 0
220184
221185 # Deploy to production
222186 deploy-production :
You can’t perform that action at this time.
0 commit comments