From 9694fe6512f1acfbe2c22c98bf8341a382152e1b Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 19 Nov 2023 22:01:14 +0100 Subject: [PATCH] push --- .gitea/workflows/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml index 9e06e12..b5719b2 100644 --- a/.gitea/workflows/action.yml +++ b/.gitea/workflows/action.yml @@ -117,7 +117,11 @@ jobs: - name: Deploy to Main run: | - apt-get update -qq && apt-get install -y -qq sshpass musl musl-tools sqlite3 curl gnupg && mkdir -p /etc/apt/keyrings | curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && apt-get update && apt-get install nodejs -y && apt-get install npm -y + mkdir ~/.ssh + ssh-keyscan -H $SSH_HOST >> ~/.ssh/known_hosts + echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + scp target/$CARGO_TARGET/release/rot $SSH_USER@$SSH_HOST:/home/k004373/rowing/rot-updating scp -r static $SSH_USER@$SSH_HOST:/home/k004373/rowing/ scp -r templates $SSH_USER@$SSH_HOST:/home/k004373/rowing/