Skip to content

Commit

Permalink
docker library: trigger operator with mariadb_version
Browse files Browse the repository at this point in the history
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
  • Loading branch information
grooverdan committed Nov 13, 2024
1 parent eef5b19 commit 1bce3a9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions master-nonlatent/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -773,15 +773,18 @@ f_dockerlibrary.addStep(
steps.ShellCommand(
name="test operator with image",
command=[
'bash',
'-xc',
"bash",
"-xc",
util.Interpolate(
'gh workflow run %s --repo mariadb-operator/mariadb-operator -f mariadb_image=quay.io/mariadb-foundation/mariadb-devel@%s',
util.Property('GH_WORKFLOW', default='test-image.yml'),
util.Property('lastsha'),
"gh workflow run %s --repo mariadb-operator/mariadb-operator -f mariadb_image=quay.io/mariadb-foundation/mariadb-devel@%s -f mariadb_version=%s",
util.Property("GH_WORKFLOW", default="test-image.yml"),
util.Property("lastsha"),
util.Property("master_branch"),
),
],
doStepIf=lambda step: (str(step.getProperty("lastsha")) != "null" and step.hasProperty("lastsha")),
doStepIf=lambda step: (
str(step.getProperty("lastsha")) != "null" and step.hasProperty("lastsha")
),
)
)

Expand Down

0 comments on commit 1bce3a9

Please sign in to comment.