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

main
lzwang 2022-09-03 20:44:12 +08:00
parent 6a1e9f9ef5
commit 9356091e2e
1 changed files with 7 additions and 0 deletions

View File

@ -92,6 +92,13 @@ steps:
- docker ps
- docker images
- name: Build Docker Image
environment:
docker_hub_user:
from_secret: docker_hub_username
docker_hub_token:
from_secret: docker_hub_token
commands:
- echo ${docker_hub_username}
- docker build . -t lzwang/python3.10:vps -f ./Dockerfile
- docker login -u ${docker_hub_username} -p ${docker_hub_token}
- docker push lzwang/python3.10:vps