[zshrc] change drone secret options
This commit is contained in:
parent
aad7d03284
commit
ba51a57b47
|
@ -170,28 +170,28 @@ source ~/.zshrc.docker
|
|||
## drone ci
|
||||
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"
|
||||
drone secret add --name docker_username --data sbruder "$1"
|
||||
drone secret add --name docker_password --data "$(pass show devops/docker|head -n 1)" "$1"
|
||||
)
|
||||
}
|
||||
|
||||
function drone-add-registry() {
|
||||
(
|
||||
drone secret add --name docker_username --value simon "$1"
|
||||
drone secret add --name docker_password --value "$(pass show accounts/sbruderldap|head -n 1)" "$1"
|
||||
drone secret add --name docker_username --data simon "$1"
|
||||
drone secret add --name docker_password --data "$(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"
|
||||
drone secret add --name netlify_key --data "$(pass show devops/netlify |grep Drone-Key|cut -d: -f2|tr -d ' ')" "$1"
|
||||
)
|
||||
}
|
||||
|
||||
function drone-add-s3() {
|
||||
(
|
||||
drone secret add --name aws_access_key_id --value "$(pass show management/minio/personal|grep User|cut -d: -f2|tr -d ' ')" "$1"
|
||||
drone secret add --name aws_secret_access_key --value "$(pass show management/minio/personal|head -n 1)" "$1"
|
||||
drone secret add --name aws_access_key_id --data "$(pass show management/minio/personal|grep User|cut -d: -f2|tr -d ' ')" "$1"
|
||||
drone secret add --name aws_secret_access_key --data "$(pass show management/minio/personal|head -n 1)" "$1"
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue