- Set an environment variable with your GCP Project ID:
export GOOGLE_CLOUD_PROJECT=<PROJECT_ID>
gcloud builds submit --tag=gcr.io/${GOOGLE_CLOUD_PROJECT}/flask-helloworld src/docker run -p 8080:8080 -e PORT=8080 --rm gcr.io/${GOOGLE_CLOUD_PROJECT}/flask-helloworldpytest src/tests/
Note: you may need to install pytest using pip install pytest.
- Complete the Build step
- Install/ Upgrade a release
helm upgrade --install dev ./helm/ --set gcpProjectId="${GOOGLE_CLOUD_PROJECT}" --debuggcloud builds submit --config=cloudbuild.yaml --substitutions=_CLOUDSDK_COMPUTE_ZONE="<CLUSTER-ZONE>",_CLOUDSDK_CONTAINER_CLUSTER="<CLUSTER-NAME>"Note: Make sure your cloud build service account have all the required permissions.