From 684e8db099764eb55bb6dd61c79dc65d915ceae6 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 28 Mar 2018 20:59:19 +0000 Subject: [PATCH] correct drone --- home/.zshrc.local | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/home/.zshrc.local b/home/.zshrc.local index 6c28caa..1b62ec0 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -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 $@ ) }