From 7484d75fb9ffb0a6338b3984fce4d371ab1f797e Mon Sep 17 00:00:00 2001 From: lzwang Date: Sun, 4 Sep 2022 16:40:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95ssh=20pipeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0e7a45e..e273bec 100644 --- a/.drone.yml +++ b/.drone.yml @@ -75,30 +75,15 @@ type: ssh name: SSH Pipeline server: - host: 38.55.104.160 - user: root + host: + from_secret: aus_host + user: + from_secret: aus_user password: from_secret: aus_pw steps: - - name: Show System Env + - name: Say hello commands: - echo hello world - - whoami - - date - - ls - - name: Show Docker Env - commands: - - docker ps - - docker images - - name: Build Docker Image - environment: - USERNAME: - from_secret: docker_hub_username - TOKEN: - from_secret: docker_hub_token - commands: - - echo $USERNAME - - docker build . -t lzwang/python3.10:vps -f ./Dockerfile - - docker login -u $USERNAME -p $TOKEN - - docker push lzwang/python3.10:vps + - neofetch