Skip to content

Commit

Permalink
come on google you can do this
Browse files Browse the repository at this point in the history
  • Loading branch information
joostvdg committed May 13, 2020
1 parent d9fcd10 commit 40b9f13
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "[email protected]:joostvdg/cmg.git"
# SOURCE_BRANCH: "master"
# DESTINATION_REPO: "[email protected]: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
Expand All @@ -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" \
Expand Down

0 comments on commit 40b9f13

Please sign in to comment.