test ssh in action
This commit is contained in:
1 parent
e414a0014d
commit
df616d3a88
1 file changed
+13
-1
+13
-1
@@ -8,7 +8,6 @@ on:
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -38,3 +37,16 @@ jobs:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
tags: gitea.rwcloud.ch/homelab/wiki:latest
|
||||
|
||||
deploy:
|
||||
needs: build-and-push
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: executing remote ssh commands using ssh key
|
||||
uses: appleboy/ssh-action@v1.2.0
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
script: whoami
|
||||
Reference in new issue
Block a user