diff --git a/drone.yaml b/drone.yaml index a650cb0..d065136 100644 --- a/drone.yaml +++ b/drone.yaml @@ -1,12 +1,15 @@ kind: pipeline type: docker -name: default +name: first_run + +clone: + disable: true steps: - - name: install-dependencies - image: python:3.12 + - name: clone + image: alpine/git commands: - - pip install -r pyproject.toml + - git clone https://git.ronis-0505.ru/ronis_0505/telegram-bot-for-manipulate-orders.git . - name: build image: docker:dind @@ -17,9 +20,15 @@ steps: - docker build -t myapp:${DRONE_COMMIT_SHA} . - name: deploy - image: appleboy/ssh + image: alpine + environment: + ENV_CONTENT: + from_secret: DOT_ENV_CONTENT + commands: + - apk add --no-cache openssh + - echo "$ENV_CONTENT" > .env settings: - host: your.server.ip + host: localhost username: ronis_0505 password: 667766 script: