Skip to content
Snippets Groups Projects
Commit 9c67745e authored by Marco Wettstein's avatar Marco Wettstein
Browse files

fix: try-catch legacy bitwarden t

parent 754d8770
No related branches found
No related tags found
No related merge requests found
Pipeline #135381 passed
......@@ -152,22 +152,25 @@ const doItFor = async (
if (hasBitwarden()) {
// add cloud sql secret if needed.
// TODO: this is legacy, in the future we want to have one service account per app
const context = await getPipelineContextByChoice(env, componentName);
if (
context.componentConfig.deploy &&
context.componentConfig.deploy.values?.cloudsql?.enabled
) {
await upsertAllVariables(
instance,
{
cloudsqlProxyCredentials: await readPass(
GOOGLE_CLOUD_SQL_PASS_PATH
),
},
env,
componentName
);
try {
const context = await getPipelineContextByChoice(env, componentName);
if (
context.componentConfig.deploy &&
context.componentConfig.deploy.values?.cloudsql?.enabled
) {
await upsertAllVariables(
instance,
{
cloudsqlProxyCredentials: await readPass(
GOOGLE_CLOUD_SQL_PASS_PATH
),
},
env,
componentName
);
}
} catch (e) {
// ignore atm
}
}
instance.log("" + env + ":" + componentName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment