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