From 92d45ca71ec7a43fcbae5d703a216d522ee11a6a Mon Sep 17 00:00:00 2001 From: user-penguin Date: Tue, 12 Sep 2023 23:56:04 +0700 Subject: [PATCH] fix pipeline --- build/ci/.drone.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/build/ci/.drone.yml b/build/ci/.drone.yml index 94d2cf3..1ab993c 100644 --- a/build/ci/.drone.yml +++ b/build/ci/.drone.yml @@ -44,22 +44,25 @@ steps: - build/ci/Dockerfile - deploy/docker-compose.yml - migrations - - cmd + - butler rm: true -# - name: deploy -# pull: if-not-exists -# image: appleboy/drone-ssh -# settings: -# host: -# from_secret: SSH_IP -# username: -# from_secret: SSH_USER -# key: -# from_secret: SSH_KEY -# port: -# from_secret: SSH_PORT -# script: + - name: deploy + pull: if-not-exists + image: appleboy/drone-ssh + settings: + host: + from_secret: SSH_IP + username: + from_secret: SSH_USER + key: + from_secret: SSH_KEY + port: + from_secret: SSH_PORT + script: + - mv build/ci/Dockerfile . + - mv deploy/docker-compose.yml . + - rm -r build deploy # TODO: # scp bin, Dockerfile, docker-compose