diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 1c439f6..aebad67 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -33,5 +33,8 @@ jobs: - name: Upload files run: rsync -rvp --chown=quentin:users --chmod=777 --exclude=.gitea --exclude=.git ${{ vars.RSYNC_ARGS }} . remote:${{ vars.DESTINATION_DIR }} + - name: Remove old container + run: docker kill $(docker ps -aq --filter ancestor=sg_rain_radar) && docker rm $(docker ps -aq --filter ancestor=sg_rain_radar) + - name: Run container run: ssh remote 'cd ${{ vars.DESTINATION_DIR }} && make run'