Skip to content

Commit

Permalink
feat: allow templating of registry and name
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotstocker authored Jul 30, 2024
1 parent 3ae6524 commit 22ccc2f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/docker/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,17 @@ class Image {
return string.template(template)(vars)
}).filter(Boolean)

const registry = string.template(opts.registry)(vars);
const name = string.template(opts.name)(vars)

const image = new(this)({
registry: opts.registry
registry
, project: opts.project
, name: opts.name
, name
, dockerfile: opts.dockerfile
, build_id: opts.build
, cwd: context.cwd
, tags: tags
, tags
, context: opts.context
, network: opts.network
, quiet: opts.quiet
Expand Down

0 comments on commit 22ccc2f

Please sign in to comment.