add org_registry env by default
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Dmitriy Pleshevskiy 2022-06-07 14:59:39 +03:00
parent c26aab1ac0
commit 73a64b6ea1
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
3 changed files with 7 additions and 4 deletions

View File

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

View File

@ -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

View File

@ -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 |