From 5ab4b58aeb7859f3172b2db46f7bc47bf7a0c566 Mon Sep 17 00:00:00 2001 From: Vaansh Lakhwara Date: Sat, 15 Jul 2023 04:09:14 -0400 Subject: [PATCH] feat: move to cloud run deployment --- .github/workflows/cicd.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 2593c97..9f536c6 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -9,6 +9,10 @@ on: - opened - closed +env: + SERVICE: gore + REGION: northamerica-northeast1 + jobs: cicd: runs-on: ubuntu-latest @@ -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