From e3f00a8874286b7a7ae8e21e4058b46ba2e7fd1c Mon Sep 17 00:00:00 2001 From: informaticker Date: Sun, 3 Nov 2024 23:26:02 +0100 Subject: [PATCH] fix actions AGAIN --- .gitea/workflows/deploy.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index d7cfe69..742740e 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -4,14 +4,14 @@ on: [push] jobs: deploy: runs-on: ubuntu-latest + container: + image: eeacms/rsync steps: + - name: Install git + run: | + apk add --no-cache git - name: Checkout code uses: actions/checkout@v3 - - name: Install rsync - run: | - sudo apt-get update - sudo apt-get install rsync -y - which rsync # This will verify rsync location - name: Setup SSH env: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} @@ -27,9 +27,8 @@ jobs: HOST1: ${{ secrets.HOST1 }} USER: ${{ secrets.USER }} run: | - # First verify the remote directory exists ssh $USER@$HOST1 'rm -rf /var/www/elia.network/html/*' - /usr/bin/rsync -avz --delete \ + rsync -avz --delete \ --exclude '.git*' \ ./ $USER@$HOST1:/var/www/elia.network/html/ - name: Reload Nginx