This commit is contained in:
@@ -9,17 +9,19 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- run: ls -las ${{ gitea.workspace }}
|
||||
|
||||
- run: ls -las ${{ gitea.workspace }}/manifests/
|
||||
- name: Run a multi-line script
|
||||
run: |
|
||||
mkdir ../build
|
||||
cp -TR . ../build
|
||||
tar -cvf deploy.tar ../build/manifests/
|
||||
|
||||
- name: Copy files
|
||||
uses: https://github.com/mdallasanta/ssh-scp-deploy@v1.2.0
|
||||
uses: https://github.com/appleboy/scp-action@master
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
user: ${{ secrets.USERNAME }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
port: 22
|
||||
local: ${{ gitea.workspace }}/manifests/
|
||||
remote: /srv/teu/rewinger/packages/
|
||||
scp_options: -r
|
||||
source: deploy.tar
|
||||
target: /srv/teu/rewinger/packages/
|
||||
overwrite: true
|
||||
|
||||
Reference in New Issue
Block a user