add functions for own docker registry

legacy
Simon Bruder 2018-05-18 19:42:42 +00:00
parent ff784c0f53
commit 42026d377a
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
2 changed files with 22 additions and 1 deletions

2
home/.docker-ls.yaml Normal file
View File

@ -0,0 +1,2 @@
registry: https://r.sbruder.de
user: sbruder

View File

@ -172,13 +172,20 @@ export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on' # force antialiasing in
source ~/.zshrc.docker
## drone ci
function drone-add-registry() {
function drone-add-hub() {
(
drone secret add --name docker_username --value sbruder "$1"
drone secret add --name docker_password --value "$(pass show devops/docker|head -n 1)" "$1"
)
}
function drone-add-registry() {
(
drone secret add --name docker_username --value sbruder "$1"
drone secret add --name docker_password --value "$(pass show accounts/sbruderldap|head -n 1)" "$1"
)
}
function drone-add-netlify() {
(
drone secret add --name netlify_key --value "$(pass show devops/netlify |grep Drone-Key|cut -d: -f2|tr -d ' ')" "$1"
@ -198,3 +205,15 @@ function drone() {
~/bin/drone $@
)
}
function docker-ls() {
(
DOCKER_LS_PASSWORD=$(pass show accounts/sbruderldap|head -n 1) ~/go/bin/docker-ls $@
)
}
function docker-rm() {
(
DOCKER_LS_PASSWORD=$(pass show accounts/sbruderldap|head -n 1) ~/go/bin/docker-rm $@
)
}