ci/cd - add missing log() and fix TYPE for linux tests

This commit is contained in:
florian 2023-03-05 19:00:25 +01:00
parent 2604d9a563
commit b95d1bc6d5
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
2 changed files with 6 additions and 1 deletions

View File

@ -157,7 +157,7 @@ jobs:
needs: [code-security, build-ubuntu, build-debian, build-centos, build-fedora, build-rhel]
uses: ./.github/workflows/staging-create-infra.yml
with:
TYPE: k8s
TYPE: linux
secrets:
CICD_SECRETS: ${{ secrets.CICD_SECRETS }}

5
tests/logger.py Normal file
View File

@ -0,0 +1,5 @@
from datetime import datetime
def log(what, level, msg) :
when = datetime.now().strftime("[%Y-%m-%d %H:%M:%S]")
print(f"{when} - {what} - {level} - {msg}", flush=True)