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

main
lzwang 2022-09-03 20:47:19 +08:00
parent 9356091e2e
commit e5522885b0
1 changed files with 4 additions and 4 deletions

View File

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