hmm fix
This commit is contained in:
parent
f0d89f850e
commit
51b5edb04f
@ -50,16 +50,7 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, fa
|
|||||||
const config = {};
|
const config = {};
|
||||||
for (const s in template.services) {
|
for (const s in template.services) {
|
||||||
let newEnvironments = []
|
let newEnvironments = []
|
||||||
if (arm && template.services[s]?.environmentArm?.length > 0) {
|
if (template.services[s]?.environment?.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) {
|
|
||||||
for (const environment of template.services[s].environment) {
|
for (const environment of template.services[s].environment) {
|
||||||
let [env, ...value] = environment.split("=");
|
let [env, ...value] = environment.split("=");
|
||||||
value = value.join("=")
|
value = value.join("=")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user