add org_registry env by default
Some checks failed
continuous-integration/drone/push Build is failing

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 from_secret: org_registry_username
password: password:
from_secret: org_registry_password from_secret: org_registry_password
registry: registry.pleshevski.ru repo: ${ORG_REGISTRY}/${DRONE_REPO}
repo: registry.pleshevski.ru/${DRONE_REPO}

View file

@ -3,7 +3,11 @@
set -ex set -ex
if [ -n "$PLUGIN_PASSWORD" ]; then 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 AUTH_FLAGS=--with-registry-auth
fi fi

View file

@ -8,6 +8,6 @@ Simple bash plugin to login and stack deploy
| ----------------- | ------ | ------------------ | ----------------------------------------- | | ----------------- | ------ | ------------------ | ----------------------------------------- |
| name | string | $DRONE_REPO_NAME | Stack name | | name | string | $DRONE_REPO_NAME | Stack name |
| compose_file_path | string | docker-compose.yml | Path to your docker compose configuration | | 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 | | username | string | | Authenticates with this username |
| password | string | | Authenticates with this password | | password | string | | Authenticates with this password |