From 40b9f1385c71194c8cbd67148dc0dfac86a8efb2 Mon Sep 17 00:00:00 2001 From: Joost van der Griendt Date: Wed, 13 May 2020 22:36:07 +0200 Subject: [PATCH] come on google you can do this --- .github/workflows/build.yml | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f6484fe..de25026 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,21 +60,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} -# sync-heroku: -# needs: [build] -# runs-on: ubuntu-latest -# steps: -# - name: repo-sync -# uses: wei/git-sync@master -# env: -# SOURCE_REPO: "git@github.com:joostvdg/cmg.git" -# SOURCE_BRANCH: "master" -# DESTINATION_REPO: "git@heroku.com:catan-map-generator.git" -# DESTINATION_BRANCH: "master" -# SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} -# with: -# args: $SOURCE_REPO $SOURCE_BRANCH $DESTINATION_REPO $DESTINATION_BRANCH - cloud-run: name: Google Cloud Run runs-on: ubuntu-latest @@ -93,16 +78,12 @@ jobs: # Build and push image to Google Container Registry - name: Build - run: |- - gcloud builds submit \ - --quiet \ - --tag "gcr.io/$PROJECT_ID/$SERVICE_NAME:${{needs.tag.outputs.tag}}" + run: gcloud builds submit --tag gcr.io/$PROJECT_ID/$SERVICE_NAME:${{needs.tag.outputs.tag}} # Deploy image to Cloud Run - name: Deploy run: |- gcloud run deploy "$SERVICE_NAME" \ - --project=${$PROJECT_ID} \ - --quiet \ + --project=$PROJECT_ID \ --region "$RUN_REGION" \ --image "gcr.io/$PROJECT_ID/$SERVICE_NAME:${{needs.tag.outputs.tag}}" \ --platform "managed" \