Skip to content
name: cloud-run-cloud-deploy

Check failure on line 1 in .github/workflows/cloud-run-cloud-deploy.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/cloud-run-cloud-deploy.yaml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
on:
push:
branches:
- add-cloud-run-cloud-deploy
paths:
- .github/workflows/cloud-run-cloud-deploy.yaml
- gcp/cloud-run
paths-ignore:
- gcp/cloud-run/cloud-deploy.yaml
workflow_call:
permissions:
contents: read
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: main
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v2
with:
workload_identity_provider: "projects/${{ vars.GCP_PROJECT_NUMBER }}/locations/global/workloadIdentityPools/github-actions/providers/github-actions"
service_account: "github-actions@${{ vars.GCP_PROJECT_ID }}.iam.gserviceaccount.com"
- uses: google-github-actions/create-cloud-deploy-release@v1
with:
name: ${{ github.sha }}
delivery_pipeline: cloud-run-cloud-deploy
region: asia-northeast1
skaffold_file: gcp/cloud-run/scaffold.yaml
images: |
nginx=nginx