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 $@ ) }