Skip to content

Commit a28a188

Browse files
authored
fix(ironbank): interpolation (#67)
1 parent 19e7a4e commit a28a188

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

tests/ironbank/templates/ent-search/dod.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def initialize(build_environment = :centos8)
153153
case build_environment
154154
when :ubi9
155155
@base_image = 'ubi9/ubi'
156-
@base_tag = '9.4'
156+
@base_tag = '9.3'
157157
end
158158

159159
@image_environment = '-dod'

updatecli/policies/ironbank/templates/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.5.2
4+
5+
* Fix interpolation
6+
37
## 0.5.1
48

59
* Fix match `@base_tag =: ` for `@base_tag = ` instead

updatecli/policies/ironbank/templates/Policy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ url: "https://github.com/elastic/oblt-updatecli-policies/"
55
changelog: "https://github.com/elastic/oblt-updatecli-policies/tree/main/updatecli/policies/ironbank/templates/CHANGELOG.md"
66
documentation: "https://github.com/elastic/oblt-updatecli-policies/tree/main/updatecli/policies/ironbank/templates/README.md"
77
source: "https://github.com/elastic/oblt-updatecli-policies/tree/main/updatecli/policies/ironbank/templates/"
8-
version: 0.5.1
8+
version: 0.5.2
99
vendor: Updatecli Project
1010

1111
licenses:

updatecli/policies/ironbank/templates/updatecli.d/default.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ targets:
7676
spec:
7777
file: {{ .ent_search_ruby }}
7878
matchpattern: "@base_tag = (')(.+)(')"
79-
replacepattern: '@base_tag = $1{{ source "ubi_version" }}$3'
79+
replacepattern: '@base_tag = ${1}{{ source "ubi_version" }}$3'
8080
# {{ end }} # end if .ent_search_ruby
8181

8282
# Elastic Agent and Beats use a packaging yaml definition

0 commit comments

Comments
 (0)