Initial commit
This commit is contained in:
15
entrypoint.sh
Executable file
15
entrypoint.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
set -eu
|
||||
|
||||
echo "Launching SSH agent"
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add <(echo "$SSH_PRIVATE_KEY")
|
||||
|
||||
echo "Logging in on remote host..."
|
||||
|
||||
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
|
||||
"$SSH_USER@$SSH_HOST" -p "$SSH_PORT" \
|
||||
"docker login -u ${REGISTRY_USER} --password-stdin ${REGISTRY_HOST}" \
|
||||
<<< "$REGISTRY_PASSWORD"
|
||||
Reference in New Issue
Block a user