App is available at https://react-app-7vauz33abq-nw.a.run.app/
cd scheduler
gcloud run deploy --source . scheduler --project=eighth-sandbox-442218-k5 --region=europe-west2
for the moment, yes to unauthenticated invocations
Delete artifact registry for the scheduler in artifact registry
gcloud run service delete scheduler --project=eighth-sandbox-442218-k5
gcloud auth application-default login
./gradlew jib
More details on building JIB can be found at https://github.com/GoogleContainerTools/jib/tree/master/jib-gradle-plugin
Image is pushed to artifact registry
gcloud run deploy web-app \
--image europe-west2-docker.pkg.dev/eighth-sandbox-442218-k5/cloud-run-source-deploy/web-app:latest \
--platform managed \
--region europe-west2 \
--allow-unauthenticated \
--update-env-vars SCHEDULER_URL=https://scheduler-1088477649607.europe-west2.run.app
Deployment is done using cloud build, a manual trigger exists to run the build.
If there is a forbidden issue when accessing the app, check IAM policy for the service.
gcloud run services get-iam-policy react-app --region=europe-west2
If the roles/run.invoker is not present for allUsers, add the permission to all users.
gcloud run services add-iam-policy-binding react-app-service \
--member="allUsers" \
--role="roles/run.invoker" \
--region=us-central1