Skip to content

Commit

Permalink
remove extra envs
Browse files Browse the repository at this point in the history
  • Loading branch information
AzizMukhtorjonov committed Jun 25, 2024
1 parent f5f1670 commit 70487cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
- main

env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SERVER_USER: ${{ secrets.SERVER_USER }}
SERVER_HOST: ${{ secrets.SERVER_HOST }}
KNOWN_HOSTS: ${{ secrets.KNOWN_HOSTS }}
DIRECTORY: "${{ vars.DIRECTORY }}/${{ github.event.repository.name }}"

jobs:
Expand All @@ -26,14 +22,14 @@ jobs:
- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Confirm host key
run: ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts

- name: Deploy on Server
run: |
ssh -t $SERVER_USER@$SERVER_HOST << EOF
ssh -t "${{ secrets.SERVER_USER }}"@"${{ secrets.SERVER_HOST }}" << EOF
if [ -d "$DIRECTORY" ]; then
rm -rf $DIRECTORY
Expand Down
2 changes: 1 addition & 1 deletion ci-cd
Submodule ci-cd updated from 51affe to 10fd2f

0 comments on commit 70487cb

Please sign in to comment.