diff --git a/gcloud/orb.yaml b/gcloud/orb.yaml index 4233765..36e4240 100644 --- a/gcloud/orb.yaml +++ b/gcloud/orb.yaml @@ -370,134 +370,6 @@ jobs: gcloud functions deploy <> --source="/tmp/build" \ <> - deploy-cloud-run: - description: > - Deploy a container to either Google's managed Cloud Run service or to a - specified Knative cluster. - executor: <> - parameters: - creds: - default: GCLOUD_SERVICE_KEY - description: > - Name of environment variable storing the base64-encoded service key - for the GCP project. - type: env_var_name - cluster: - default: '' - description: > - If set, deploys to a Knative cluster rather than using the managed - Cloud Run service. - type: string - cpu: - default: '1' - description: > - CPU to be allocated to our cloud run container. - type: string - deployment: - description: > - Name of deployment to-be-updated. - type: string - # TODO: Find a better way to do this. CircleCI does not have a list - # type yet: https://ideas.circleci.com/ideas/CCI-I-701 - env_vars: - default: '' - description: > - Evironment variables to be passed into the cloud run container. - type: string - executor: - default: gcloud-alpine-latest - description: > - Executor for the job. Must have a working gcloud version installed. - To use your own custom executor, see - `https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-executors`. - Defaults to a small google/cloud-sdk:alpine docker image. - type: executor - image: - default: ${CIRCLE_PROJECT_REPONAME} - description: > - Name of the target image. Note that this will be prepended by the - project name (eg. <>), so the full path your - image will be pushed to will look like: - <>/<>/<>. - type: string - managed_flags: - description: > - Flags to pass to the `gcloud run deploy` command. Will only be used - for managed deploys (eg. Cloud Run rather than Knative). - default: --no-allow-unauthenticated - type: string - memory: - description: > - Memory to be allocated to our cloud run container, measured in Mi. - default: 128Mi - type: string - project: - description: > - Name of GCP project to which we will push. - type: string - region: - description: > - Name of GCP region to which we will push. - type: string - steps: - - auth: - creds: <> - project: <> - - unless: - condition: <> - steps: - - unless: - condition: <> - steps: - - run: | - gcloud run deploy <> \ - --platform=managed <> \ - --image="gcr.io/<>/<>:${CIRCLE_SHA1:0:10}" \ - --cpu=<> \ - --memory=<> \ - --region=<> \ - --clear-env-vars &> output - - when: - condition: <> - steps: - - run: | - gcloud run deploy <> \ - --platform=managed <> \ - --image="gcr.io/<>/<>:${CIRCLE_SHA1:0:10}" \ - --cpu=<> \ - --memory=<> \ - --region=<> \ - --set-env-vars <> &> output - - run: | - gcloud run services update-traffic <> \ - --platform=managed \ - --region=<> \ - --to-latest - - when: - condition: <> - steps: - - run: | - gcloud run deploy <> \ - --platform=gke \ - --image "gcr.io/<>/<>:${CIRCLE_SHA1:0:10}" \ - --cpu=<> \ - --memory=<> \ - --cluster=<> \ - --cluster-location=<> \ - --namespace=<> \ - --set-env-vars <> &> output - - run: | - gcloud run services update-traffic <> \ - --platform=gke \ - --cluster=<> \ - --cluster-location=<> \ - --namespace=<> \ - --to-latest - - run: - name: cat output - command: cat output - when: always - deploy-gke: description: > Deploy a k8s deployment to GKE via provided YAML. Will record the