Skip to content

Approval

Approval #11

name: cloud-run-cloud-deploy
on:
push:
branches:
- add-cloud-run-cloude-deploy
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