Skip to content

Commit

Permalink
feat: move to cloud run deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaansh committed Jul 15, 2023
1 parent c174ef6 commit 5ab4b58
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- opened
- closed

env:
SERVICE: gore
REGION: northamerica-northeast1

jobs:
cicd:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -53,10 +57,10 @@ jobs:
- name: Push Docker image to Docker Hub
run: docker push ${{ secrets.DOCKER_USERNAME }}/gore:latest

- name: Deploy to App Engine
uses: google-github-actions/setup-gcloud@v0
- name: Deploy to Cloud Run
id: deploy
uses: google-github-actions/deploy-cloudrun@v0
with:
project_id: ${{ secrets.GCLOUD_PROJECT_ID }}
app_dir: /app
service: default
version: latest
service: ${{ env.SERVICE }}
region: ${{ env.REGION }}
image: ${{ secrets.DOCKER_USERNAME }}/gore:latest

0 comments on commit 5ab4b58

Please sign in to comment.