add org_registry env by default
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c26aab1ac0
commit
73a64b6ea1
3 changed files with 7 additions and 4 deletions
|
@ -16,6 +16,5 @@ steps:
|
|||
from_secret: org_registry_username
|
||||
password:
|
||||
from_secret: org_registry_password
|
||||
registry: registry.pleshevski.ru
|
||||
repo: registry.pleshevski.ru/${DRONE_REPO}
|
||||
repo: ${ORG_REGISTRY}/${DRONE_REPO}
|
||||
|
||||
|
|
|
@ -3,7 +3,11 @@
|
|||
set -ex
|
||||
|
||||
if [ -n "$PLUGIN_PASSWORD" ]; then
|
||||
echo -n "$PLUGIN_PASSWORD" | docker login -u "$PLUGIN_USERNAME" --password-stdin $PLUGIN_REGISTRY
|
||||
echo -n "$PLUGIN_PASSWORD" | \
|
||||
docker login \
|
||||
-u "$PLUGIN_USERNAME" \
|
||||
--password-stdin \
|
||||
${PLUGIN_REGISTRY:-$ORG_REGISTRY}
|
||||
AUTH_FLAGS=--with-registry-auth
|
||||
fi
|
||||
|
||||
|
|
|
@ -8,6 +8,6 @@ Simple bash plugin to login and stack deploy
|
|||
| ----------------- | ------ | ------------------ | ----------------------------------------- |
|
||||
| name | string | $DRONE_REPO_NAME | Stack name |
|
||||
| compose_file_path | string | docker-compose.yml | Path to your docker compose configuration |
|
||||
| registry | string | | Authenticates to this registry |
|
||||
| registry | string | $ORG_REGISTRY | Authenticates to this registry |
|
||||
| username | string | | Authenticates with this username |
|
||||
| password | string | | Authenticates with this password |
|
||||
|
|
Reference in a new issue