diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 91716f5..a76c01e 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -45,6 +45,6 @@ jobs: uses: docker/build-push-action@v2 with: context: . - platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 + platforms: linux/amd64 push: true tags: ${{ steps.meta.outputs.tags }} \ No newline at end of file diff --git a/src/config.ts b/src/config.ts index 5e51e81..acd473e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -165,9 +165,10 @@ function migrate(config: SBSConfig) { function loadFromEnv(config: SBSConfig, prefix = "") { for (const key in config) { const fullKey = (prefix ? `${prefix}_` : "") + key; + const data = config[key]; - if (typeof config[key] === "object") { - loadFromEnv(config[key], fullKey); + if (typeof data === "object" && !Array.isArray(data)) { + loadFromEnv(data, fullKey); } else if (process.env[fullKey]) { const value = process.env[fullKey]; if (isNumber(value)) {