Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
catladder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
catladder
catladder
Commits
9c67745e
Commit
9c67745e
authored
2 years ago
by
Marco Wettstein
Browse files
Options
Downloads
Patches
Plain Diff
fix: try-catch legacy bitwarden t
parent
754d8770
No related branches found
No related tags found
No related merge requests found
Pipeline
#135381
passed
2 years ago
Stage: build
Stage: deploy
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cli/src/apps/cli/commands/project/commandConfigSecrets.ts
+19
-16
19 additions, 16 deletions
cli/src/apps/cli/commands/project/commandConfigSecrets.ts
with
19 additions
and
16 deletions
cli/src/apps/cli/commands/project/commandConfigSecrets.ts
+
19
−
16
View file @
9c67745e
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Ghost User
@ghost
mentioned in commit
c230f3df
·
2 years ago
mentioned in commit
c230f3df
mentioned in commit c230f3df0a640ce81a12ef01e26e68d639c8ea8a
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment