ci: install rsync in deploy runner container
Deploy to Production on Develop Push / deploy (push) Successful in 20s
Details
Deploy to Production on Develop Push / deploy (push) Successful in 20s
Details
This commit is contained in:
parent
9c451f12c5
commit
e063b3cd4a
|
|
@ -27,10 +27,13 @@ jobs:
|
||||||
|
|
||||||
- name: Deploy to Server via rsync
|
- name: Deploy to Server via rsync
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt-get update -qq
|
||||||
|
sudo apt-get install -y -qq rsync openssh-client
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
|
||||||
rsync -avz --delete \
|
rsync -avz --delete \
|
||||||
--exclude=".git/" \
|
--exclude=".git/" \
|
||||||
--exclude=".gitea/" \
|
--exclude=".gitea/" \
|
||||||
|
|
@ -44,4 +47,4 @@ jobs:
|
||||||
--exclude="tools/" \
|
--exclude="tools/" \
|
||||||
-e "ssh -p ${{ secrets.SSH_PORT }} -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" \
|
-e "ssh -p ${{ secrets.SSH_PORT }} -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" \
|
||||||
./ \
|
./ \
|
||||||
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.TARGET_DIR }}
|
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.TARGET_DIR }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue