From 9ba8c874c3c9f29008b42565e88385043e6a4057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Sch=C3=A4ferdiek?= Date: Fri, 18 Aug 2023 00:07:17 +0200 Subject: [PATCH] Remove debug step and add -n to echo --- .forgejo/workflows/build.yaml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index bbf3bec..530a886 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -9,7 +9,8 @@ jobs: run: | pacman -Syu --noconfirm pacman -Sy --noconfirm nodejs npm git - pacman -Sy --noconfirm shellcheck rsync openssh coreutils + pacman -Sy --noconfirm shellcheck openssh openssl coreutils rsync + pacman -Scc --noconfirm - uses: actions/checkout@v3 name: Clone @@ -18,14 +19,6 @@ jobs: run: | find usr/local/bin -type f -exec echo Testing {} \; -exec shellcheck {} \; - - name: DEBUG STEP - run: | - echo $KEY - echo "Base 64 stuff" - echo $KEY | base64 -d - env: - KEY: ${{ secrets.DEPLOY_SSH_KEY }} - - name: Build ArchLinux package run: | useradd -m build @@ -46,7 +39,6 @@ jobs: HOST: ${{ secrets.DEPLOY_SSH_HOST }} run: | mkdir -p ~/.ssh - which base64 - echo $KEY | base64 -d >> ~/.ssh/id_rsa + echo -n $KEY | base64 -d >> ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa rsync -az -zz -r --del -e 'ssh -p 2222 -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o StrictHostKeyChecking=no' ${{ github.workspace }}/_pkg/{*.zst,*.db.tar.gz,*.files.tar.gz} $USER@$HOST:/srv/http/myservermanager.com/htdocs/aur/