Skip to content

Commit

Permalink
Merge pull request #42 from remap-keys/change-build-server-endpoint
Browse files Browse the repository at this point in the history
Change the endpoint of Remap build server and specify the service account
  • Loading branch information
yoichiro authored Nov 6, 2023
2 parents 80c6333 + f2276ae commit cf448e6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<IResult> {
@NeedAuthentication()
Expand Down Expand Up @@ -64,6 +65,9 @@ export class CreateFirmwareBuildingTaskCommand extends AbstractCommand<IResult>
},
httpMethod: HttpMethod.GET,
url: `${BUILD_SERVER_URL}/build?uid=${uid}&taskId=${taskId}`,
oidcToken: {
serviceAccountEmail: BUILD_SERVER_TASK_AUTH_SA,
},
},
};
const request = {
Expand Down

0 comments on commit cf448e6

Please sign in to comment.