From 407a7df5afdc6eeec232423af29741e97db27687 Mon Sep 17 00:00:00 2001 From: nemanjam Date: Fri, 7 Jun 2024 17:25:40 +0200 Subject: [PATCH] set up config file manually --- .github/workflows/deploy-nginx-bash.yml | 26 ++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy-nginx-bash.yml b/.github/workflows/deploy-nginx-bash.yml index 2366ad8..74b03c8 100644 --- a/.github/workflows/deploy-nginx-bash.yml +++ b/.github/workflows/deploy-nginx-bash.yml @@ -38,19 +38,23 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile - # fix this for turbo - name: Build nemanjamiticcom run: yarn build - - name: Setup ssh config - id: ssh - uses: invi5H/ssh-action@v1 - with: - SSH_HOST: ${{ secrets.REMOTE_HOST }} - SSH_USER: ${{ secrets.REMOTE_USERNAME }} - SSH_KEY: ${{ secrets.REMOTE_KEY_ED25519 }} - SSH_PORT: ${{ secrets.REMOTE_PORT }} + - name: Set up SSH key + run: | + mkdir -p ~/.ssh + echo "${{ secrets.REMOTE_KEY_ED25519 }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 - - name: Run bash file with ssh alias + - name: Set up SSH config run: | - bash scripts/deploy-nginx-local.sh '~/traefik-proxy/apps/nmc-nginx-with-volume/website' '${{ steps.ssh.outputs.SERVER }}' + echo "Host arm1" > ~/.ssh/config + echo " HostName ${{ secrets.REMOTE_HOST }}" >> ~/.ssh/config + echo " User ${{ secrets.REMOTE_USERNAME }}" >> ~/.ssh/config + echo " IdentityFile ~/.ssh/id_ed25519" >> ~/.ssh/config + echo " Port ${{ secrets.REMOTE_PORT }}" >> ~/.ssh/config + chmod 600 ~/.ssh/config + + - name: Run bash file with yarn + run: yarn deploy:nginx