Before you deploy: account, project, billing and API
Cloud Run needs a Google Cloud project with billing enabled. Do this once, in the Google Cloud console.- Sign in. Open console.cloud.google.com and sign in with your Google account. If you are new to Google Cloud, create a Google Cloud account when prompted.
- Create or select a project. Open the project selector. To create one, open the Manage resources page, click Create Project, fill in Project name (4 to 30 characters), then click Create. Keep the project selected in the drop-down at the top of the console for the next steps.
- Check or link billing. Open the navigation menu (☰) and select Billing. If billing is active, the billing Overview page opens. If the console says This project has no billing account, click Link a billing account and choose an active billing account.
- Enable the Cloud Run Admin API. Open the Cloud Run Admin API page of the API Library, check that your project is selected, then click Enable. If you push your image to Artifact Registry, enable the Artifact Registry API the same way.
- Check your roles. To deploy, your account needs Cloud Run Admin (
roles/run.admin) and Service Account User (roles/iam.serviceAccountUser) on the project.
gcloud CLI:
Deploy
To deploy apowerb to Google Cloud Run:- Build your Docker container and push it to Google Container Registry or Artifact Registry.
- Deploy the image to Cloud Run:
- Configure environment variables in the Cloud Run settings.
