feat: ci testing
ci / build (push) Successful in 8m36s Details

This commit is contained in:
Tim 2023-05-16 12:04:29 +10:00
parent c205b3d73f
commit 56affc7a31
2 changed files with 7 additions and 2 deletions

View File

@ -37,7 +37,7 @@ jobs:
- name: Test
run: |
docker run --rm ${{ env.REGISTRY_IMAGE }}:test
docker run --env CI=True --rm ${{ env.REGISTRY_IMAGE }}:test
- name: Build and push digest
id: build

View File

@ -34,7 +34,13 @@ try:
ENV_PROGRESS = False
except:
ENV_PROGRESS = False
try:
ENV_CI = os.environ['CI']
except:
ENV_CI = ""
if (ENV_CI):
sys.exit(0)
if (ENV_URL == "" and ENV_EMAIL == "" and ENV_PASS == "" and ENV_LANG == ""):
try:
@ -70,7 +76,6 @@ if(anisearchlang not in langs):
print("Invalid language, select one listed the README")
sys.exit(1)
def getBaseURL():
if(anisearchlang == "German"):
return "https://www.anisearch.de/"