I try to automate cloud run deployment with the cloudrun orb, but circleci throws the following error:
# Error calling workflow: 'build_and_deploy_to_managed_workflow'
# Error calling job: 'build_and_deploy'
# Cannot find orb 'cloudrun' looking for command named 'cloudrun/init'
#
# -------
# Warning: This configuration was auto-generated to show you the message above.
# Don't rerun this job. Rerunning will have no effect.
# false
# Exited with code exit status 1
My config looks like this:
jobs:
build_and_deploy:
docker:
- image: 'cimg/base:stable'
steps:
- checkout
- cloudrun/init
- cloudrun/build:
tag: 'gcr.io/ml-webpage-264418/personal-webpage'
- cloudrun/deploy:
image: 'gcr.io/ml-webpage-264418/personal-webpage'
platform: managed
region: us-east1
service-name: personal-webpage
unauthenticated: true
args: "--set-env-vars: [aws_secret_access_key=${aws_secret_access_key},aws_access_key_id=${aws_access_key_id}]"
- run:
command: >
# A simple example of how a deployed managed service could be
verified or further tested.
# This step will send request our "API" and fail if there is
unexpected output.
GCP_API_RESULTS=$(curl -s "$GCP_DEPLOY_ENDPOINT")
fi
name: Test managed deployed service.
orbs:
gcp-cloud-run: circleci/gcp-cloud-run@1.0.2
version: 2.1
workflows:
build_and_deploy_to_managed_workflow:
jobs:
- build_and_deploy
Can anyone help?