Skip to content

added logging option to cloud build step #24

added logging option to cloud build step

added logging option to cloud build step #24

name: Back End Deployment on Cloud Run
on:
push:
branches: [ "main" ]
jobs:
# To build the project
build-back:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./travian/backend/
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checking out code
uses: actions/checkout@v3
- name: Google Auth
id: auth
uses: 'google-github-actions/[email protected]'
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- name: Fix Auth
run: yes | gcloud auth login --cred-file="$GOOGLE_APPLICATION_CREDENTIALS"
- name: Deploy to Cloud Build
run: gcloud builds submit --tag gcr.io/travian-dev-395914/test:1.0.0 .
options:

Check failure on line 32 in .github/workflows/deploy-back-run.yml

View workflow run for this annotation

GitHub Actions / Back End Deployment on Cloud Run

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-back-run.yml (Line: 32, Col: 9): Unexpected value 'options'
logging: CLOUD_LOGGING_ONLY
- name: Deploy to Cloud Run
run: gcloud run services update app --image=gcr.io/travian-dev-395914/test:1.0.0 --port=8000 --region=us-central1 --platform managed