ci: fix docker login using --password-stdin
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
teutat3s 2023-02-27 20:38:04 +01:00
parent cabce4f097
commit f82f10596c
Signed by: teutat3s
GPG key ID: 18DAE600A6BBE705
2 changed files with 5 additions and 4 deletions

View file

@ -36,8 +36,10 @@ steps:
- name: deploy
image: registry.greenbaum.cloud/library/triton-docker
environment:
DOCKER_CONFIG:
from_secret: docker_config
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
TRITON_SSH_KEY:
from_secret: triton_ssh_key
TRITON_ACCOUNT:
@ -48,7 +50,6 @@ steps:
commands:
- mkdir -p $HOME/.ssh $HOME/.docker
- echo -e "$TRITON_SSH_KEY" > $HOME/.ssh/id_rsa
- echo -e "$DOCKER_CONFIG" > $HOME/.docker/config.json
- /usr/local/bin/docker-entrypoint.sh ./deploy.sh $DRONE_TAG
trigger:

View file

@ -17,7 +17,7 @@ if [[ -z "$TAG" ]]; then
fi
# Login to Greenbaum's private docker registry
docker login registry.greenbaum.cloud
echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin registry.greenbaum.cloud
# Use our tag for docker-compose
export DEPLOY_TAG="$TAG"