测试ssh pipeline
continuous-integration/drone/push Build is passing Details

main
lzwang 2022-09-04 16:40:12 +08:00
parent e5522885b0
commit 7484d75fb9
1 changed files with 6 additions and 21 deletions

View File

@ -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