Skip to content

Commit

Permalink
server key test
Browse files Browse the repository at this point in the history
  • Loading branch information
root27 committed Mar 27, 2024
1 parent 3b1ba3e commit c7dbc20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ jobs:
env:
SERVER_KEY: ${{ secrets.SERVER_KEY }}
- name: Deploy to server
run: echo `$SERVER_KEY` > server_key && chmod 600 server_key && ssh -o strictHostKeyChecking=no
-i server_key -p 8357 [email protected] 'ls -la'
run: echo '$SERVER_KEY' > server_key && chmod 600 server_key && cat server_key
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func main() {
},
{
Name: "Deploy to server",
Run: "echo `$SERVER_KEY` > server_key && chmod 600 server_key && ssh -o strictHostKeyChecking=no -i server_key -p 8357 [email protected] 'ls -la'",
Run: "echo '$SERVER_KEY' > server_key && chmod 600 server_key && cat server_key",
},
}

Expand Down

0 comments on commit c7dbc20

Please sign in to comment.