uselagoon / build-deploy-tool

Tool to generate build resources
2 stars 5 forks source link

LAGOON_SERVICE and LAGOON_CONTAINER variables #305

Open tnelson-doghouse opened 2 months ago

tnelson-doghouse commented 2 months ago

It would be handy if the variables mentioned in the subject line were populated with the names of the service name and the container name.

shreddedbacon commented 2 months ago

You're requesting these variables be created yes, because they do not currently exist?

What purpose would you have for these variables? How would you see them being used?

I can see them being easy enough to add though, but I'm curious to understand what you would be using them for.

tnelson-doghouse commented 2 months ago

Well, they'd be really handy for customising PS1 :-p

shreddedbacon commented 2 months ago

The problem you might have would be locally those variables may not exist though unless you set them. So your PS1 would need to know what is provided by Lagoon, and what is provided by you. But I'm sure you can figure it out.

I'll see when we may be able to get these into the templates. There is a bit of work already for the templates being adjusted that this would be relatively easy to slot into though.

tnelson-doghouse commented 2 months ago

Oh, good point. But yes, I'm sure we can figure that one out. Thanks!