Skip to content

TEST GithubActions 4 #8

TEST GithubActions 4

TEST GithubActions 4 #8

name: Deploy to Cloud Run from Source
on:
push:
branches: ['main']
env:
PROJECT_ID: regrets-reporter-dev # TODO: update Google Cloud project id
SERVICE: tiktok-reporter-app-be # TODO: update Cloud Run service name
REGION: europe-west1 # TODO: update Cloud Run service region
jobs:
deploy:
# Add 'id-token' with the intended permissions for workload identity federation
permissions:
contents: 'read'
id-token: 'write'
secrets: inherit

Check failure on line 18 in .github/workflows/google-cloudrun-source.yml

View workflow run for this annotation

GitHub Actions / Deploy to Cloud Run from Source

Invalid workflow file

The workflow is not valid. .github/workflows/google-cloudrun-source.yml (Line: 18, Col: 7): Unexpected value 'secrets'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Google Auth
id: auth
uses: 'google-github-actions/auth@v0'
with:
token_format: 'access_token'
workload_identity_provider: '${{ secrets.WIF_PROVIDER }}' # e.g. - projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider
service_account: '${{ secrets.WIF_SERVICE_ACCOUNT }}' # e.g. - my-service-account@my-project.iam.gserviceaccount.com
- name: Deploy to Cloud Run
id: deploy
uses: google-github-actions/deploy-cloudrun@v0
with:
service: ${{ env.SERVICE }}
region: ${{ env.REGION }}
# NOTE: If required, update to the appropriate source folder
source: ./
# If required, use the Cloud Run url output in later steps
- name: Show Output
run: echo ${{ steps.deploy.outputs.url }}