Skip to content

Commit 0eab2eb

Browse files
committed
rename personal to developer
1 parent 49879cb commit 0eab2eb

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

.github/workflows/api-deploy-personal.yml renamed to .github/workflows/api-deploy-developer.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Deploys a personal Feeds API (Cloud Run) and Operations API (Cloud Function) to the DEV project.
1+
# Deploys a developer Feeds API (Cloud Run) and Operations API (Cloud Function) to the DEV project.
22
#
33
# Completely isolated — no Terraform, no shared infrastructure changes.
44
# Only two new named resources are created/updated (both scoped to your suffix):
55
# - Cloud Run: developer-feed-api-<name_suffix>
6-
# - Cloud Function: operations-api-personal-<name_suffix>
6+
# - Cloud Function: operations-api-developer-<name_suffix>
77
#
88
# Both use the same dev secrets/databases as the shared dev environment (read-safe).
99
#
@@ -12,8 +12,8 @@
1212
# Variables (already set for api-dev.yml): DEV_MOBILITY_FEEDS_PROJECT_ID,
1313
# DEV_MOBILITY_FEEDS_DEPLOYER_SERVICE_ACCOUNT, MOBILITY_FEEDS_REGION
1414
#
15-
# Usage: Actions → "Deploy Personal Feeds API" → Run workflow → fill in name_suffix
16-
name: Deploy Personal Feeds API
15+
# Usage: Actions → "Deploy Developer Feeds API" → Run workflow → fill in name_suffix
16+
name: Deploy Developer Feeds API
1717

1818
on:
1919
# PR for testing
@@ -24,12 +24,12 @@ on:
2424
inputs:
2525
name_suffix:
2626
description: >
27-
Personal identifier suffix. Creates:
28-
Cloud Run: developer-feed-api-<suffix>
29-
Cloud Function: operations-api-personal-<suffix>
27+
Developer identifier suffix. Creates:
28+
Cloud Run: mobility-feed-api-developer-<suffix>
29+
Cloud Function: operations-api-developer-<suffix>
3030
Use your name or branch (e.g. "david", "feat-1723").
3131
required: true
32-
default: 'developer'
32+
default: 'x'
3333
deploy_feeds_api:
3434
description: 'Deploy Feeds API (Cloud Run)'
3535
required: false
@@ -142,7 +142,7 @@ jobs:
142142
path: functions-python/operations_api/.dist/
143143
include-hidden-files: true
144144

145-
# ── Feeds API: build Docker image and deploy to personal Cloud Run ─────────
145+
# ── Feeds API: build Docker image and deploy to developer Cloud Run ─────────
146146
deploy-feeds-api:
147147
if: ${{ github.event.inputs.deploy_feeds_api != 'false' }}
148148
runs-on: ubuntu-latest
@@ -158,8 +158,8 @@ jobs:
158158
- name: Set service name and image tag
159159
id: names
160160
run: |
161-
echo "service_name=developer-feed-api-${{ github.event.inputs.name_suffix || 'dev' }}" >> "$GITHUB_OUTPUT"
162-
echo "image_tag=personal-$(date +%s)-${GITHUB_SHA::8}" >> "$GITHUB_OUTPUT"
161+
echo "service_name=mobility-feed-api-developer${{ github.event.inputs.name_suffix || 'x' }}" >> "$GITHUB_OUTPUT"
162+
echo "image_tag=developer-$(date +%s)-${GITHUB_SHA::8}" >> "$GITHUB_OUTPUT"
163163
164164
- name: Download generated artifacts
165165
uses: actions/download-artifact@v4
@@ -210,7 +210,7 @@ jobs:
210210
- name: GCloud Setup
211211
uses: google-github-actions/setup-gcloud@v2
212212

213-
- name: Deploy to personal Cloud Run
213+
- name: Deploy to developer Cloud Run
214214
# Creates/updates ONLY developer-feed-api-<suffix> — shared dev Cloud Run is untouched.
215215
# Secret names follow the same DEV_<KEY> pattern used by Terraform (infra/feed-api/main.tf).
216216
run: |
@@ -237,7 +237,7 @@ jobs:
237237
--format 'value(status.url)')
238238
echo "url=${URL}" >> "$GITHUB_OUTPUT"
239239
240-
# ── Operations API: build zip and deploy to personal Cloud Function ────────
240+
# ── Operations API: build zip and deploy to developer Cloud Function ────────
241241
deploy-operations-api:
242242
if: ${{ github.event.inputs.deploy_operations_api != 'false' }}
243243
runs-on: ubuntu-latest
@@ -253,7 +253,7 @@ jobs:
253253
- name: Set function name
254254
id: names
255255
run: |
256-
echo "function_name=operations-api-personal-${{ github.event.inputs.name_suffix || 'dev' }}" >> "$GITHUB_OUTPUT"
256+
echo "function_name=operations-api-developer-${{ github.event.inputs.name_suffix || 'dev' }}" >> "$GITHUB_OUTPUT"
257257
258258
- name: Download operations API build
259259
uses: actions/download-artifact@v4
@@ -277,8 +277,8 @@ jobs:
277277
- name: GCloud Setup
278278
uses: google-github-actions/setup-gcloud@v2
279279

280-
- name: Deploy to personal Cloud Function
281-
# Creates/updates ONLY operations-api-personal-<suffix> — shared operations-api is untouched.
280+
- name: Deploy to developer Cloud Function
281+
# Creates/updates ONLY operations-api-developer-<suffix> — shared operations-api is untouched.
282282
# Secret names follow the same DEV_<KEY> pattern used by Terraform (infra/functions-python/main.tf).
283283
run: |
284284
gcloud functions deploy "${{ steps.names.outputs.function_name }}" \
@@ -319,7 +319,7 @@ jobs:
319319
steps:
320320
- name: Write job summary
321321
run: |
322-
echo "## 🚀 Personal API deployment" >> "$GITHUB_STEP_SUMMARY"
322+
echo "## 🚀 Developer API deployment" >> "$GITHUB_STEP_SUMMARY"
323323
echo "" >> "$GITHUB_STEP_SUMMARY"
324324
echo "| Service | Name | URL |" >> "$GITHUB_STEP_SUMMARY"
325325
echo "|---------|------|-----|" >> "$GITHUB_STEP_SUMMARY"
@@ -337,5 +337,5 @@ jobs:
337337
fi
338338
339339
echo "" >> "$GITHUB_STEP_SUMMARY"
340-
echo "> ⚠️ These are personal services sharing the **dev databases** (read/write)." >> "$GITHUB_STEP_SUMMARY"
340+
echo "> ⚠️ These are developer services sharing the **dev databases** (read/write)." >> "$GITHUB_STEP_SUMMARY"
341341
echo "> No shared Cloud Run, Terraform state, load balancer, or IAM was modified." >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)