This commit is contained in:
@@ -3,8 +3,8 @@ name: Publish
|
||||
run-name: ${{ github.actor }} publish
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'manifests/**'
|
||||
# paths:
|
||||
# - 'manifests/**'
|
||||
jobs:
|
||||
deploy_via_ssh:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -12,6 +12,16 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Remove current
|
||||
uses: https://github.com/appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
port: 22
|
||||
script: |
|
||||
rm -rf /srv/teu/rewinged/packages/manifests
|
||||
|
||||
- name: Copy files
|
||||
run: |
|
||||
mkdir ~/.ssh
|
||||
@@ -28,4 +38,4 @@ jobs:
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
port: 22
|
||||
script: |
|
||||
sudo docker container restart rewinger
|
||||
docker container restart rewinged
|
||||
|
||||
Reference in New Issue
Block a user