ci: fix docker login using --password-stdin
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cabce4f097
commit
f82f10596c
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue