Ajouter ping.yml
This commit is contained in:
1 parent
259ccfd0ce
commit
69568f545a
1 file changed
+18
@@ -0,0 +1,18 @@
|
|||||||
|
name: ping-ssh
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ping:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: SSH ping
|
||||||
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
port: ${{ secrets.SSH_PORT }}
|
||||||
|
username: ${{ secrets.SSH_USER }}
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
script: |
|
||||||
|
whoami
|
||||||
|
hostname
|
||||||
|
echo "CI->SSH OK"
|
||||||
Reference in new issue
Block a user