changed dockerfiles to be compatible with new protoc
Some checks failed
Deploy to Proxmox LXC / deploy (push) Failing after 3s
Some checks failed
Deploy to Proxmox LXC / deploy (push) Failing after 3s
This commit is contained in:
@@ -18,8 +18,16 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
chmod 700 ~/.ssh
|
chmod 700 ~/.ssh
|
||||||
printf "%s" "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
|
|
||||||
|
# Accept raw private key or base64-encoded private key in DEPLOY_SSH_KEY.
|
||||||
|
if printf "%s" "$DEPLOY_SSH_KEY" | grep -q "BEGIN OPENSSH PRIVATE KEY"; then
|
||||||
|
printf "%s\n" "$DEPLOY_SSH_KEY" | tr -d '\r' > ~/.ssh/id_ed25519
|
||||||
|
else
|
||||||
|
printf "%s" "$DEPLOY_SSH_KEY" | tr -d '\r' | base64 -d > ~/.ssh/id_ed25519
|
||||||
|
fi
|
||||||
|
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
ssh-keygen -y -f ~/.ssh/id_ed25519 >/dev/null
|
||||||
ssh-keyscan -p "${DEPLOY_PORT:-22}" -H "$DEPLOY_HOST" >> ~/.ssh/known_hosts
|
ssh-keyscan -p "${DEPLOY_PORT:-22}" -H "$DEPLOY_HOST" >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Deploy latest main
|
- name: Deploy latest main
|
||||||
|
|||||||
Reference in New Issue
Block a user