Initial commit

This commit is contained in:
2024-07-02 13:09:46 +02:00
commit 11e0f786fe
15 changed files with 302 additions and 0 deletions

15
entrypoint.sh Executable file
View 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"