Commit Graph

5 Commits (057139ef2d121bb27ac467170275cb59897fcfc3)

Author SHA1 Message Date
Dustin 057139ef2d wip: buildContainerImage2 2023-10-05 22:04:47 -05:00
Dustin 356d9ecc1d buildContainerImage: Handle null arguments
If the `buildContainerImage` method is called without passing any
arguments at all, the `args` object will be `null`.  Attempting to
access the properties of it in that case raises a
`NullPointerException`.  Fortunately, Groovy has a `?` operator that
returns `null` when the named object is `null` and avoids accessing its
properties.
2022-12-01 20:06:59 -06:00
Dustin 579a42a5f0 Support selecting build architecture
The `buildContainerImage` method now supports an optional `arch` keyword
argument.  This argument can be used to select the architecture of the
node running the pod building the container image.  If unspecified, it
defaults to `amd64`.
2022-11-27 17:30:52 -06:00
Dustin b6f57b7c1a buildContainerImage: Allow passing arguments
The `registry`, `project`, `name`, and `tag` values can now be passed as
keyword arguments to the `buildContainerImage` function.  This will
allow jobs to override the default values if necessary.
2022-11-25 17:01:12 -06:00
Dustin fad319c83b Initial commit 2022-11-06 21:36:25 -06:00