correct drone

This commit is contained in:
Simon Bruder 2018-03-28 20:59:19 +00:00
parent 1a79c2a24e
commit 684e8db099
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -160,9 +160,17 @@ export ANDROID_HOME="$HOME/projekte/android/sdk"
source ~/.zshrc.docker
## drone ci
function drone-add-ci() {
function drone-add-registry() {
(
source ~/.drone-env
drone registry add --repository $1 --hostname r.sbruder.de --username simon --password $DRONE_CI_PASSWORD
drone secret add --name docker_username --value simon "$1"
drone secret add --name docker_password --value "$DRONE_CI_PASSWORD" "$1"
)
}
function drone() {
(
source ~/.drone-env
~/bin/drone $@
)
}