Skip to content

Commit dfbf9f2

Browse files
committed
fix: correct syntax for GCS_SERVICE_ACCOUNT_KEY in staging deployment configuration
1 parent 1eca98a commit dfbf9f2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/staging_deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
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"

0 commit comments

Comments
 (0)