From c3d63a25fcd399a360b5b0ed1b70f6008395a017 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Fri, 9 Sep 2022 16:40:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20fix=20debug=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ Dockerfile | 4 +++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3c57525 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,42 @@ +kind: pipeline +type: docker +name: deploy-x86 + +platform: + arch: amd64 + +steps: +- name: deploy + image: plugins/docker + settings: + registry: git.hydrar.de + username: + from_secret: registry_user + password: + from_secret: registry_password + repo: git.hydrar.de/jmarya/stone-market + tags: + - latest + - latest-amd64 + +--- +kind: pipeline +type: docker +name: deploy-arm + +platform: + arch: arm64 + +steps: +- name: deploy + image: plugins/docker + settings: + registry: git.hydrar.de + username: + from_secret: registry_user + password: + from_secret: registry_password + repo: git.hydrar.de/jmarya/stone-market + tags: + - latest + - latest-arm64 diff --git a/Dockerfile b/Dockerfile index fb75c8d..53ddbca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,6 @@ VOLUME /config COPY src /app -CMD [ "python3", "/app/main.py" ] \ No newline at end of file +RUN sed -i "s/debug=True/debug=False/" /app/main.py + +CMD [ "python3", "/app/main.py" ]