Pārlūkot izejas kodu

compatibility: lower boolean values in env

master
lanvent pirms 1 gada
vecāks
revīzija
4ad2997717
2 mainītis faili ar 7 papildinājumiem un 3 dzēšanām
  1. +1
    -2
      .github/workflows/deploy-image.yml
  2. +6
    -1
      config.py

+ 1
- 2
.github/workflows/deploy-image.yml Parādīt failu

@@ -12,8 +12,7 @@ name: Create and publish a Docker image
on:
push:
branches: ['master']
release:
types: [published]
create:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}


+ 6
- 1
config.py Parādīt failu

@@ -124,7 +124,12 @@ def load_config():
try:
config[name] = eval(value)
except:
config[name] = value
if value == "false":
config[name] = False
elif value == "true":
config[name] = True
else:
config[name] = value

logger.info("[INIT] load config: {}".format(config))



Notiek ielāde…
Atcelt
Saglabāt