Skip to content

Commit

Permalink
fix(drone): user private dockerhub repo
Browse files Browse the repository at this point in the history
  • Loading branch information
GimmyHchs committed Jun 4, 2018
1 parent 10da9ff commit 1913fff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ pipeline:
host: 209.97.168.149
username: root
command_timeout: 300
secrets: [ plugin_ssh_key ]
secrets: [ plugin_ssh_key, docker_username, docker_password ]
envs: [ docker_username, docker_password ]
script:
- docker login --username "$DOCKER_USERNAME" --password "$DOCKER_PASSWORD"
- cd /var/www
- git -C cococharge-docker pull || git clone git@github.com:g9308370/cococharge-docker.git
- cd cococharge-docker/${DRONE_COMMIT_BRANCH}
Expand Down

0 comments on commit 1913fff

Please sign in to comment.