File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 # Uses Google Cloud Secret Manager to store secret credentials
3737 - name : Create app.yaml
3838 run : |
39- echo "service: ocotillo-api-dev " > app.yaml
39+ echo "service: dev- ocotillo-api" > app.yaml
4040 echo "runtime: python313" >> app.yaml
4141 echo "entrypoint: gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app" >> app.yaml
4242 echo "instance_class: F4" >> app.yaml
@@ -63,11 +63,11 @@ jobs:
6363 # Clean up old versions - delete only the oldest version, one created and one destroyed
6464 - name : Clean up oldest version
6565 run : |
66- OLDEST_VERSION=$(gcloud app versions list --service=ocotillo-api-dev --project=${{ secrets.GCP_PROJECT_ID }}
66+ OLDEST_VERSION=$(gcloud app versions list --service=dev- ocotillo-api --project=${{ secrets.GCP_PROJECT_ID }}
6767 --format="value(id)" --sort-by="version.createTime" | head -n 1)
6868 if [ ! -z "$OLDEST_VERSION" ]; then
6969 echo "Deleting oldest version: $OLDEST_VERSION"
70- gcloud app versions delete $OLDEST_VERSION --service=ocotillo-api-dev --project=${{ secrets.GCP_PROJECT_ID }} --quiet
70+ gcloud app versions delete $OLDEST_VERSION --service=dev- ocotillo-api --project=${{ secrets.GCP_PROJECT_ID }} --quiet
7171 echo "Deleted oldest version: $OLDEST_VERSION"
7272 else
7373 echo "No versions to delete"
You can’t perform that action at this time.
0 commit comments