File tree Expand file tree Collapse file tree 5 files changed +41
-4
lines changed Expand file tree Collapse file tree 5 files changed +41
-4
lines changed Original file line number Diff line number Diff line change 1
- VITE_OIDC_DOMAIN = citadel.demo.aserto.com
1
+ VITE_OIDC_DOMAIN = citadel.authzen-interop.net
2
2
VITE_OIDC_CLIENT_ID = citadel-app
3
3
VITE_OIDC_AUDIENCE = citadel-app
4
- VITE_API_ORIGIN = https://authzen- todo-backend.demo.aserto.com
4
+ VITE_API_ORIGIN = https://todo-backend.authzen-interop.net
5
5
# VITE_API_ORIGIN=http://localhost:8080
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " authzen-todo-backend" ,
3
- "version" : " 0.1.16 " ,
3
+ "version" : " 0.1.17 " ,
4
4
"description" : " AuthZEN todo backend interop sample" ,
5
5
"main" : " src/index.ts" ,
6
6
"scripts" : {
10
10
"dev" : " nodemon --ignore db/* ./src/index.ts" ,
11
11
"docker-build" : " scripts/docker-build.sh" ,
12
12
"docker-run" : " scripts/docker-run.sh" ,
13
+ "gcp-build" : " scripts/build-gcp.sh" ,
14
+ "gcp-deploy" : " scripts/deploy-gcp.sh" ,
13
15
"tsc" : " tsc --noEmit --incremental" ,
14
16
"release" : " ./scripts/release.sh" ,
15
17
"test" : " node build/test/runner.js" ,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ REGISTRY=${REGISTRY:- gcr.io}
4
+ PROJECT=${PROJECT:- authzen-457117}
5
+ IMAGE=${IMAGE:- authzen-todo-backend}
6
+
7
+ # extract version from package.json
8
+ VERSION=$( cat package.json \
9
+ | grep version \
10
+ | head -1 \
11
+ | awk -F: ' { print $2 }' \
12
+ | sed ' s/[",]//g' \
13
+ | tr -d ' [[:space:]]' )
14
+
15
+ # submit the build to google cloud build and tag the image with the version
16
+ gcloud builds submit --tag $REGISTRY /$PROJECT /$IMAGE :$VERSION
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ REGISTRY=${REGISTRY:- gcr.io}
4
+ PROJECT=${PROJECT:- authzen-457117}
5
+ IMAGE=${IMAGE:- authzen-todo-backend}
6
+ SERVICE=${SERVICE:- authzen-todo-backend}
7
+
8
+ # extract version from package.json
9
+ VERSION=$( cat package.json \
10
+ | grep version \
11
+ | head -1 \
12
+ | awk -F: ' { print $2 }' \
13
+ | sed ' s/[",]//g' \
14
+ | tr -d ' [[:space:]]' )
15
+
16
+ gcloud run deploy $SERVICE \
17
+ --image $REGISTRY /$PROJECT /$IMAGE :$VERSION \
18
+ --platform managed --allow-unauthenticated \
19
+ --region us-central1
Original file line number Diff line number Diff line change 40
40
}
41
41
},
42
42
"gateways" : {
43
- "--Pass Through--" : " https://authzen- todo-backend.demo.aserto.com " ,
43
+ "--Pass Through--" : " https://todo-backend.authzen-interop.net " ,
44
44
"AWS API Gateway" : " https://aws-gateway.authzen-interop.net" ,
45
45
"Envoy" : " https://authzen-envoy-proxy-demo.cerbos.dev" ,
46
46
"Kong" : " https://plainid-kong-gw.se-plainid.com" ,
You can’t perform that action at this time.
0 commit comments