Skip to content

Commit 0883636

Browse files
grooverdanRazvanLiviuVarzaru
authored andcommitted
docker library: trigger operator with mariadb_version
Without the MariaDB version specified, the operator was depending on a tag to identify the version. As we trigger by sha this needs to be specified. Depends on mariadb-operator/mariadb-operator#1048
1 parent 9eb989f commit 0883636

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

master-nonlatent/master.cfg

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -773,15 +773,18 @@ f_dockerlibrary.addStep(
773773
steps.ShellCommand(
774774
name="test operator with image",
775775
command=[
776-
'bash',
777-
'-xc',
776+
"bash",
777+
"-xc",
778778
util.Interpolate(
779-
'gh workflow run %s --repo mariadb-operator/mariadb-operator -f mariadb_image=quay.io/mariadb-foundation/mariadb-devel@%s',
780-
util.Property('GH_WORKFLOW', default='test-image.yml'),
781-
util.Property('lastsha'),
779+
"gh workflow run %s --repo mariadb-operator/mariadb-operator -f mariadb_image=quay.io/mariadb-foundation/mariadb-devel@%s -f mariadb_version=%s",
780+
util.Property("GH_WORKFLOW", default="test-image.yml"),
781+
util.Property("lastsha"),
782+
util.Property("master_branch"),
782783
),
783784
],
784-
doStepIf=lambda step: (str(step.getProperty("lastsha")) != "null" and step.hasProperty("lastsha")),
785+
doStepIf=lambda step: (
786+
str(step.getProperty("lastsha")) != "null" and step.hasProperty("lastsha")
787+
),
785788
)
786789
)
787790

0 commit comments

Comments
 (0)