Compare commits

...

3 Commits
nodb ... master

Author SHA1 Message Date
Torma Kristóf 60cf6188bc upload to docker hub
continuous-integration/drone/push Build is passing Details
2022-01-31 23:21:07 +01:00
Torma Kristóf da2fe572aa remove legacy steps
continuous-integration/drone/push Build is passing Details
2021-08-09 11:36:48 +02:00
Torma Kristóf e38c428cc9 remove workers and threads
continuous-integration/drone/push Build is failing Details
2021-08-09 11:33:26 +02:00
2 changed files with 13 additions and 19 deletions

View File

@ -3,16 +3,6 @@ type: docker
name: default
steps:
- name: static_analysis
image: "python:3.8"
commands:
- pip3 install --cache-dir='./.pipcache' pylint bandit mccabe
- pip3 install --cache-dir='./.pipcache' -r requirements.txt
- find . -name "*.py" -exec python3 -m py_compile '{}' \;
- find . -name "*.py" -exec pylint '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi
- find . -name "*.py" -exec python3 -m mccabe --min 3 '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi
- bandit -r . + || if [ $? -eq 1 ]; then echo "you fail"; fi
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
@ -21,14 +11,6 @@ steps:
sonar_token:
from_secret: SONAR_CODE
- name: sentry
image: tormachris/drone-sentry
settings:
sentry_project: ${DRONE_REPO_NAME}
sentry_domain: sentry.kmlabz.com
sentry_token:
from_secret: SENTRY_TOKEN
- name: kaniko
image: banzaicloud/drone-kaniko
settings:
@ -42,6 +24,18 @@ steps:
- latest
- ${DRONE_BUILD_NUMBER}
- name: dockerhub
image: plugins/docker
settings:
repo: birbnetes/${DRONE_REPO_NAME}
username:
from_secret: DOCKERHUB_USER
password:
from_secret: DOCKERHUB_PASSWORD
tags:
- latest
- ${DRONE_BUILD_NUMBER}
- name: ms-teams
image: kuperiu/drone-teams
settings:

View File

@ -16,4 +16,4 @@ COPY ./src .
EXPOSE 8080
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8080", "--workers", "1", "--threads", "1", "app:app"]
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8080", "app:app"]