diff --git a/functions/src/keyboards/create-firmware-building-task-command.ts b/functions/src/keyboards/create-firmware-building-task-command.ts index 1cfb878..0f0eeb7 100644 --- a/functions/src/keyboards/create-firmware-building-task-command.ts +++ b/functions/src/keyboards/create-firmware-building-task-command.ts @@ -9,7 +9,8 @@ import * as functions from 'firebase-functions'; const PROJECT_ID = 'remap-b2d08'; const LOCATION = 'asia-northeast1'; const QUEUE = 'build-task-queue'; -const BUILD_SERVER_URL = 'https://remap-build-server-l3esb446ua-an.a.run.app'; +const BUILD_SERVER_URL = 'http://35.213.40.208:8080'; +const BUILD_SERVER_TASK_AUTH_SA = `remap-build-server-task-auth@${PROJECT_ID}.iam.gserviceaccount.com`; export class CreateFirmwareBuildingTaskCommand extends AbstractCommand { @NeedAuthentication() @@ -64,6 +65,9 @@ export class CreateFirmwareBuildingTaskCommand extends AbstractCommand }, httpMethod: HttpMethod.GET, url: `${BUILD_SERVER_URL}/build?uid=${uid}&taskId=${taskId}`, + oidcToken: { + serviceAccountEmail: BUILD_SERVER_TASK_AUTH_SA, + }, }, }; const request = {