This commit is contained in:
@@ -3,8 +3,8 @@ name: Publish
|
|||||||
run-name: ${{ github.actor }} publish
|
run-name: ${{ github.actor }} publish
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
# paths:
|
||||||
- 'manifests/**'
|
# - 'manifests/**'
|
||||||
jobs:
|
jobs:
|
||||||
deploy_via_ssh:
|
deploy_via_ssh:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -12,6 +12,16 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
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
|
- name: Copy files
|
||||||
run: |
|
run: |
|
||||||
mkdir ~/.ssh
|
mkdir ~/.ssh
|
||||||
@@ -28,4 +38,4 @@ jobs:
|
|||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
port: 22
|
port: 22
|
||||||
script: |
|
script: |
|
||||||
sudo docker container restart rewinger
|
docker container restart rewinged
|
||||||
|
|||||||
Reference in New Issue
Block a user