Skip to content

Commit

Permalink
set up config file manually
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjam committed Jun 7, 2024
1 parent 1ed309a commit 407a7df
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/deploy-nginx-bash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 407a7df

Please sign in to comment.