Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beaver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
orus-io
beaver
Commits
cb3a9e274215
Commit
cb3a9e274215
authored
1 year ago
by
Steeven Herlant
Browse files
Options
Downloads
Patches
Plain Diff
fix: multiples vars hydrate
parent
0ead0f9469e1
No related branches found
No related tags found
No related merge requests found
Pipeline
#68326
failed
1 year ago
Stage: test
Stage: lint
Stage: vulncheck
Stage: build
Stage: upload
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runner/hydrate.go
+7
-0
7 additions, 0 deletions
runner/hydrate.go
with
7 additions
and
0 deletions
runner/hydrate.go
+
7
−
0
View file @
cb3a9e27
...
...
@@ -44,6 +44,13 @@
if
err
!=
nil
{
return
err
}
// Search for over occurences of beaver variables
regex
:=
regexp
.
MustCompile
(
`<\[([^<\[\]>]*)\]>`
)
for
regex
.
MatchString
(
s
)
{
return
hydrateString
(
s
,
output
,
variables
)
}
if
_
,
err
:=
output
.
Write
([]
byte
(
s
));
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to template: %w"
,
err
)
}
...
...
This diff is collapsed.
Click to expand it.
Steeven Herlant
@steeven.herlant
mentioned in commit
614e21f6f487
·
1 year ago
mentioned in commit
614e21f6f487
mentioned in commit 614e21f6f48777bf8493898bed89931b1a5cda5a
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