Skip to content

Commit

Permalink
testing 12
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonSmith committed Jun 13, 2024
1 parent 0d7739f commit 925ba13
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions .github/workflows/docker_push_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,29 @@ jobs:
env:
KEY: ${{ secrets.GCP_SA_KEY }}

# - name: Checkout code
# uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

# Deploy the image to Cloud Run
- name: Deploy to Cloud Run
run: |
gcloud run deploy ${{ env.IMAGE_NAME }} \
--project=minimap-v0 \
--image=${{ steps.meta.outputs.tags }} \
--platform=managed \
--region=us-central1 \
--allow-unauthenticated \
--update-env-vars=DATABASE_URL=${{ secrets.DATABASE_URL }},COHERE_API_KEY=${{ secrets.COHERE_API_KEY }} \
--memory=4Gi \
--cpu=4 \
--max-instances=1
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
Expand Down Expand Up @@ -125,16 +146,4 @@ jobs:
# run: |
# docker push ${{ steps.meta.outputs.tags }}

# Deploy the image to Cloud Run
- name: Deploy to Cloud Run
run: |
gcloud run deploy ${{ env.IMAGE_NAME }} \
--project=minimap-v0 \
--image=${{ steps.meta.outputs.tags }} \
--platform=managed \
--region=us-central1 \
--allow-unauthenticated \
--update-env-vars=DATABASE_URL=${{ secrets.DATABASE_URL }},COHERE_API_KEY=${{ secrets.COHERE_API_KEY }} \
--memory=4Gi \
--cpu=4 \
--max-instances=1

0 comments on commit 925ba13

Please sign in to comment.