测试ssh pipeline
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
e5522885b0
commit
7484d75fb9
27
.drone.yml
27
.drone.yml
|
@ -75,30 +75,15 @@ type: ssh
|
||||||
name: SSH Pipeline
|
name: SSH Pipeline
|
||||||
|
|
||||||
server:
|
server:
|
||||||
host: 38.55.104.160
|
host:
|
||||||
user: root
|
from_secret: aus_host
|
||||||
|
user:
|
||||||
|
from_secret: aus_user
|
||||||
password:
|
password:
|
||||||
from_secret: aus_pw
|
from_secret: aus_pw
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Show System Env
|
- name: Say hello
|
||||||
commands:
|
commands:
|
||||||
- echo hello world
|
- echo hello world
|
||||||
- whoami
|
- neofetch
|
||||||
- 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
|
|
||||||
|
|
Loading…
Reference in New Issue