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" ]