Pipery Cloud Run CD#

Reusable GitHub Action for Cloud Run CD with structured logging via Pipery.

GitHub Marketplace Version License: MIT

Usage#

name: CD
on:
  push:
    branches: [main]

jobs:
  cd:
    uses: pipery-dev/pipery-cloudrun-cd@v1
    with:
      project_path: .
    secrets: inherit

Pipeline steps#

push image → gcloud run deploy → traffic migration → health check

Every step is logged to pipery.jsonl via psh and uploaded as a GitHub Actions artifact.

Inputs#

InputDescriptionDefault
project_pathPath to the project source tree..
config_filePath to the pipery config file..github/pipery/config.yaml
image_nameContainer image name to deploy (e.g. ghcr.io/org/app).``
image_tagContainer image tag to deploy.${{ github.sha }}
service_nameCloud Run service name.``
regionGoogle Cloud Run region.us-central1
project_idGoogle Cloud project ID.``
platformTarget platform: managed or gke.managed
trafficPercentage of traffic to route to new revision (0-100).100
min_instancesMinimum number of Cloud Run instances.0
max_instancesMaximum number of Cloud Run instances.100
concurrencyMaximum concurrent requests per instance.80
skip_pushSkip image push step.false
skip_deploySkip deploy step.false
skip_status_checkSkip health check step.false
log_filePath to write the JSONL log file.pipery.jsonl

Observability#

Each run produces a pipery.jsonl file. Upload it as an artifact and inspect it with the Pipery Dashboard.

License#

MIT — see LICENSE.