mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-06 19:19:56 +00:00
Make sure image name is all lowercase
Change-Type: patch
This commit is contained in:
parent
1833f6ff0a
commit
5f7eee8eac
@ -63,7 +63,7 @@ createProject = (composePath, composeStr, projectName = null) ->
|
|||||||
# generate an image name based on the project and service names
|
# generate an image name based on the project and service names
|
||||||
# if one is not given and the service requires a build
|
# if one is not given and the service requires a build
|
||||||
if descr.image.context? and not descr.image.tag?
|
if descr.image.context? and not descr.image.tag?
|
||||||
descr.image.tag = [ projectName, descr.serviceName ].join('_')
|
descr.image.tag = [ projectName, descr.serviceName ].join('_').toLowerCase()
|
||||||
return descr
|
return descr
|
||||||
return {
|
return {
|
||||||
path: composePath,
|
path: composePath,
|
||||||
@ -189,7 +189,7 @@ exports.buildProject = (
|
|||||||
|
|
||||||
# multibuild parses the composition internally so any tags we've
|
# multibuild parses the composition internally so any tags we've
|
||||||
# set before are lost; re-assign them here
|
# set before are lost; re-assign them here
|
||||||
task.tag ?= [ projectName, task.serviceName ].join('_')
|
task.tag ?= [ projectName, task.serviceName ].join('_').toLowerCase()
|
||||||
if d.image.context?
|
if d.image.context?
|
||||||
d.image.tag = task.tag
|
d.image.tag = task.tag
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user