diff --git a/.drone.yml b/.drone.yml index ca3ded5..a8e2af3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,28 @@ steps: commands: - pip install --no-cache-dir -r requirements.txt + - name: docker-build + image: plugins/docker + settings: + repo: gitea.allowlgroup.ru/allowlgroup/parser + registry: https://gitea.allowlgroup.ru + insecure: true + tags: + - latest + - ${DRONE_COMMIT_SHA:0:8} + username: + from_secret: docker_username + password: + from_secret: docker_password + context: . + dockerfile: Dockerfile + when: + branch: + - main + event: + - push + - custom + - name: deploy image: appleboy/drone-ssh settings: