mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
check if env already exists
This commit is contained in:
parent
777bed9135
commit
2d464a7fae
@ -66,7 +66,7 @@ import API from "./api"
|
|||||||
async function main() {
|
async function main() {
|
||||||
if (process.env.INFISICAL_TOKEN) {
|
if (process.env.INFISICAL_TOKEN) {
|
||||||
console.log(`🔑 Injecting env variables from INFISICAL...`)
|
console.log(`🔑 Injecting env variables from INFISICAL...`)
|
||||||
|
|
||||||
const client = new infisical({
|
const client = new infisical({
|
||||||
token: process.env.INFISICAL_TOKEN,
|
token: process.env.INFISICAL_TOKEN,
|
||||||
})
|
})
|
||||||
@ -75,7 +75,9 @@ async function main() {
|
|||||||
|
|
||||||
// inject to process.env
|
// inject to process.env
|
||||||
secrets.forEach((secret) => {
|
secrets.forEach((secret) => {
|
||||||
process.env[secret.secretName] = secret.secretValue
|
if (!(process.env[secret.secretName])) {
|
||||||
|
process.env[secret.secretName] = secret.secretValue
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ import API from "./api"
|
|||||||
async function main() {
|
async function main() {
|
||||||
if (process.env.INFISICAL_TOKEN) {
|
if (process.env.INFISICAL_TOKEN) {
|
||||||
console.log(`🔑 Injecting env variables from INFISICAL...`)
|
console.log(`🔑 Injecting env variables from INFISICAL...`)
|
||||||
|
|
||||||
const client = new infisical({
|
const client = new infisical({
|
||||||
token: process.env.INFISICAL_TOKEN,
|
token: process.env.INFISICAL_TOKEN,
|
||||||
})
|
})
|
||||||
@ -75,7 +75,9 @@ async function main() {
|
|||||||
|
|
||||||
// inject to process.env
|
// inject to process.env
|
||||||
secrets.forEach((secret) => {
|
secrets.forEach((secret) => {
|
||||||
process.env[secret.secretName] = secret.secretValue
|
if (!(process.env[secret.secretName])) {
|
||||||
|
process.env[secret.secretName] = secret.secretValue
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ import API from "./api"
|
|||||||
async function main() {
|
async function main() {
|
||||||
if (process.env.INFISICAL_TOKEN) {
|
if (process.env.INFISICAL_TOKEN) {
|
||||||
console.log(`🔑 Injecting env variables from INFISICAL...`)
|
console.log(`🔑 Injecting env variables from INFISICAL...`)
|
||||||
|
|
||||||
const client = new infisical({
|
const client = new infisical({
|
||||||
token: process.env.INFISICAL_TOKEN,
|
token: process.env.INFISICAL_TOKEN,
|
||||||
})
|
})
|
||||||
@ -75,7 +75,9 @@ async function main() {
|
|||||||
|
|
||||||
// inject to process.env
|
// inject to process.env
|
||||||
secrets.forEach((secret) => {
|
secrets.forEach((secret) => {
|
||||||
process.env[secret.secretName] = secret.secretValue
|
if (!(process.env[secret.secretName])) {
|
||||||
|
process.env[secret.secretName] = secret.secretValue
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ import API from "./api"
|
|||||||
async function main() {
|
async function main() {
|
||||||
if (process.env.INFISICAL_TOKEN) {
|
if (process.env.INFISICAL_TOKEN) {
|
||||||
console.log(`🔑 Injecting env variables from INFISICAL...`)
|
console.log(`🔑 Injecting env variables from INFISICAL...`)
|
||||||
|
|
||||||
const client = new infisical({
|
const client = new infisical({
|
||||||
token: process.env.INFISICAL_TOKEN,
|
token: process.env.INFISICAL_TOKEN,
|
||||||
})
|
})
|
||||||
@ -75,7 +75,9 @@ async function main() {
|
|||||||
|
|
||||||
// inject to process.env
|
// inject to process.env
|
||||||
secrets.forEach((secret) => {
|
secrets.forEach((secret) => {
|
||||||
process.env[secret.secretName] = secret.secretValue
|
if (!(process.env[secret.secretName])) {
|
||||||
|
process.env[secret.secretName] = secret.secretValue
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user