{"id":13638050,"url":"https://github.com/oliver006/drone-cloud-run","last_synced_at":"2025-10-29T04:32:18.387Z","repository":{"id":35101659,"uuid":"180677746","full_name":"oliver006/drone-cloud-run","owner":"oliver006","description":"A drone plugin to deploy Google Cloud Run containers. ","archived":false,"fork":false,"pushed_at":"2024-01-30T06:45:51.000Z","size":1190,"stargazers_count":7,"open_issues_count":0,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-01T22:22:51.719Z","etag":null,"topics":["cloud-run","drone","drone-ci","drone-plugin","gcp","gcp-cloud-run"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oliver006.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-10T23:15:01.000Z","updated_at":"2022-10-27T22:34:40.000Z","dependencies_parsed_at":"2024-01-14T09:17:40.348Z","dependency_job_id":"b4023014-9bb4-48bf-a753-e6788aa24732","html_url":"https://github.com/oliver006/drone-cloud-run","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliver006%2Fdrone-cloud-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliver006%2Fdrone-cloud-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliver006%2Fdrone-cloud-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliver006%2Fdrone-cloud-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oliver006","download_url":"https://codeload.github.com/oliver006/drone-cloud-run/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238768475,"owners_count":19527203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-run","drone","drone-ci","drone-plugin","gcp","gcp-cloud-run"],"created_at":"2024-08-02T01:00:39.146Z","updated_at":"2025-10-29T04:32:13.033Z","avatar_url":"https://github.com/oliver006.png","language":"Go","funding_links":[],"categories":["CI/CD"],"sub_categories":["Container guides"],"readme":"[![Build Status](https://cloud.drone.io/api/badges/oliver006/drone-cloud-run/status.svg)](https://cloud.drone.io/oliver006/drone-cloud-run) [![Coverage Status](https://coveralls.io/repos/github/oliver006/drone-cloud-run/badge.svg)](https://coveralls.io/github/oliver006/drone-cloud-run)\n\n## drone-cloud-run - A drone.io plugin to deploy Google Cloud Run containers. \n\n\n### Usage\n\nFor usage in drone v1.0:\n```\nkind: pipeline\nname: default\n\nsteps:\n  - name: deploy-using-new-drone-plugin-version\n    image: oliver006/drone-cloud-run:latest\n    pull: always\n    settings:\n      action: deploy                                            # other actions: update-traffic\n      service: my-api-service\n      runtime: gke                                              # default=managed\n      image: org-name/my-api-service-image\n      timeout: 10m                                              # google cloud default is 5m\n      memory: 512Mi\n      variant: alpha                                            # uses \"gcloud alpha run\" command variant, default=\u003cempty string\u003e. Other supported variant is beta.\n      region: us-central1\n      allow_unauthenticated: true                               # default=false\n      svc_account: 1234-my-svc-account@google.svcaccount.com \n      addl_flags:                                               # if present, flags passed to command\n        add-cloud-sql-instances: instance1,instance2\n      token:\n        from_secret: google_credentials\n      environment:\n        VAR_1: \"var01\"\n        ANOTHER_ENV_VAR: \"env_var_value\"\n      secrets:                                                  # set environment variables or file path contents to a Secret Manager secret value\n        MY_SECRET: \"my-secret:latest\"\n        /mount/path: \"mounted-secret:latest\"\n      env_secret_api_key:\n        from_secret: api_key_prod\n```\n\n### Updating traffic\n\nYou can optionally use the `update-traffic` action to change which revisions\nwill receive traffic by passing the [`services update-traffic`](https://cloud.google.com/sdk/gcloud/reference/alpha/run/services/update-traffic)\ncommand's `--to-latest`, `--to-revisions` or `--to-tags` arguments to `addl_flags`.\n\nSee the [Cloud Run traffic routing](https://cloud.google.com/run/docs/rollouts-rollbacks-traffic-migration)\ndocs for more information.\n\n```\nkind: pipeline\nname: default\n\nsteps:\n  - name: deploy-using-new-drone-plugin-version                 # Same options available as above\n    image: oliver006/drone-cloud-run:latest\n    settings:\n      action: deploy\n      variant: alpha\n      service: my-api-service\n      runtime: gke\n      image: org-name/my-api-service-image\n      region: us-central1\n      addl_flags:\n        no-traffic: ''                                          # Don't route 100% of traffic to this revision by default\n        tag: canary                                             # Human-readable revision name\n      token:\n        from_secret: google_credentials\n\n  - name: update-traffic-using-new-drone-plugin-version\n    image: oliver006/drone-cloud-run:latest\n    settings:\n      action: update-traffic\n      variant: alpha\n      service: my-api-service\n      runtime: gke\n      region: us-central1\n      addl_flags:\n        to-tags: canary=5                                       # One of: to-latest, to-revisions, to-tags (alpha variant only)\n      token:\n        from_secret: google_credentials\n```\n\n## On Additional Flags\n\nTo be flexible with respect to flags that the `gcloud` command can accept, you\ncan use `addl_flags` in your drone setup settings. Use the flags are they're described\nin the [documentation](https://cloud.google.com/sdk/gcloud/reference/run/deploy) without\nthe prefix `--` (eg. `--set-config-maps` becomes `set-config-maps`). If the flag doesn't\nrequire any arguments, use `''` as the value.\n\n## Drone version compatibility\n\nVersions `0.3.0` and below of this plugin support `.drone.yml` syntax for either Drone v0.8 or Drone v1.0 and above.\n\nBeginning with the `1.0.0` release, Drone v0.8 is no longer supported. This is due to naming conflicts in the config between configuring [Secret Manager secrets](https://cloud.google.com/run/docs/configuring/secrets) and [Drone Secrets](https://0-8-0.docs.drone.io/manage-secrets/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliver006%2Fdrone-cloud-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foliver006%2Fdrone-cloud-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliver006%2Fdrone-cloud-run/lists"}