This commit is contained in:
@@ -9,19 +9,12 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Run a multi-line script
|
|
||||||
run: |
|
|
||||||
mkdir ../build
|
|
||||||
cp -TR . ../build
|
|
||||||
tar -cvf deploy.tar ../build/manifests/
|
|
||||||
|
|
||||||
- name: Copy files
|
- name: Copy files
|
||||||
uses: https://github.com/appleboy/scp-action@master
|
uses: https://github.com/cross-the-world/ssh-scp-ssh-pipelines@latest
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.HOST }}
|
host: ${{ secrets.HOST }}
|
||||||
username: ${{ secrets.USERNAME }}
|
user: ${{ secrets.USERNAME }}
|
||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
port: 22
|
port: 22
|
||||||
source: deploy.tar
|
scp: |
|
||||||
target: /srv/teu/rewinger/packages/
|
'./manifests/*' => /srv/teu/rewinger/packages/manifests/
|
||||||
overwrite: true
|
|
||||||
|
|||||||
Reference in New Issue
Block a user