diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 46417b1..c83b740 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -9,11 +9,12 @@ jobs: deploy: runs-on: host steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Deploy container + - name: Pull latest code + run: | + cd /opt/redunits/www + git pull origin main + + - name: Rebuild and restart container run: | - rsync -a --delete ${{ gitea.workspace }}/ /opt/redunits/www/ cd /opt/redunits/www docker compose up -d --build