Pipery Cloud Run CD#
- Repository:
pipery-cloudrun-cd - Release tag:
v1.0.0 - Catalog: /catalog/
Reusable GitHub Action for Cloud Run CD with structured logging via Pipery.
Usage#
name: CD
on:
push:
branches: [main]
jobs:
cd:
uses: pipery-dev/pipery-cloudrun-cd@v1
with:
project_path: .
secrets: inheritPipeline 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#
| Input | Description | Default |
|---|---|---|
project_path | Path to the project source tree. | . |
config_file | Path to the pipery config file. | .github/pipery/config.yaml |
image_name | Container image name to deploy (e.g. ghcr.io/org/app). | `` |
image_tag | Container image tag to deploy. | ${{ github.sha }} |
service_name | Cloud Run service name. | `` |
region | Google Cloud Run region. | us-central1 |
project_id | Google Cloud project ID. | `` |
platform | Target platform: managed or gke. | managed |
traffic | Percentage of traffic to route to new revision (0-100). | 100 |
min_instances | Minimum number of Cloud Run instances. | 0 |
max_instances | Maximum number of Cloud Run instances. | 100 |
concurrency | Maximum concurrent requests per instance. | 80 |
skip_push | Skip image push step. | false |
skip_deploy | Skip deploy step. | false |
skip_status_check | Skip health check step. | false |
log_file | Path 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.