From 1a79c2a24eb649a55d21ee2926c9044451459351 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 28 Mar 2018 15:25:59 +0000 Subject: [PATCH] replace drone env file and add command for ci addition --- home/.zshrc.local | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/home/.zshrc.local b/home/.zshrc.local index 3cac3d3..6c28caa 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -159,5 +159,10 @@ export ANDROID_HOME="$HOME/projekte/android/sdk" ## include docker functions source ~/.zshrc.docker -## include drone secrets -[ -e ~/.zshrc.drone ] && source ~/.zshrc.drone +## drone ci +function drone-add-ci() { + ( + source ~/.drone-env + drone registry add --repository $1 --hostname r.sbruder.de --username simon --password $DRONE_CI_PASSWORD + ) +}