add functions for own docker registry
This commit is contained in:
parent
ff784c0f53
commit
42026d377a
2
home/.docker-ls.yaml
Normal file
2
home/.docker-ls.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
registry: https://r.sbruder.de
|
||||
user: sbruder
|
|
@ -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 $@
|
||||
)
|
||||
}
|
||||
|
|
Reference in a new issue