add logging for deploy debugging
This commit is contained in:
parent
7890126580
commit
5e2e2680b5
|
@ -41,6 +41,6 @@ build:
|
|||
script:
|
||||
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
|
||||
- docker push "$CI_REGISTRY_IMAGE"
|
||||
only:
|
||||
- main
|
||||
# only:
|
||||
# - main
|
||||
when: manual
|
||||
|
|
|
@ -28,6 +28,7 @@ export class OpaDecisionMaker extends IMakeDecision {
|
|||
(obj, item) => Object.assign(obj, { [item.name]: item.value }),
|
||||
{},
|
||||
);
|
||||
console.log(reducedContext);
|
||||
try {
|
||||
const { data } = await lastValueFrom(
|
||||
this._httpService.post<Decision>(
|
||||
|
@ -40,8 +41,10 @@ export class OpaDecisionMaker extends IMakeDecision {
|
|||
},
|
||||
),
|
||||
);
|
||||
console.log('data:', data);
|
||||
return new Authorization(data.result.allow);
|
||||
} catch (e) {
|
||||
console.log('error', e);
|
||||
return new Authorization(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue