hmm fix
This commit is contained in:
parent
f0d89f850e
commit
51b5edb04f
1 changed files with 1 additions and 10 deletions
|
|
@ -50,16 +50,7 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, fa
|
|||
const config = {};
|
||||
for (const s in template.services) {
|
||||
let newEnvironments = []
|
||||
if (arm && template.services[s]?.environmentArm?.length > 0) {
|
||||
for (const environment of template.services[s].environmentArm) {
|
||||
let [env, ...value] = environment.split("=");
|
||||
value = value.join("=")
|
||||
if (!value.startsWith('$$secret') && value !== '') {
|
||||
newEnvironments.push(`${env}=${value}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!arm && template.services[s]?.environment?.length > 0) {
|
||||
if (template.services[s]?.environment?.length > 0) {
|
||||
for (const environment of template.services[s].environment) {
|
||||
let [env, ...value] = environment.split("=");
|
||||
value = value.join("=")
|
||||
|
|
|
|||
Loading…
Reference in a new issue