From d38a59a7c101361d5ca3926747b40399dc81f4da Mon Sep 17 00:00:00 2001 From: supphakitd <67319010028@technictrang.ac.th> Date: Sun, 23 Nov 2025 21:35:55 +0700 Subject: [PATCH] workflow: call watcherd when docker image is updated Signed-off-by: supphakitd <67319010028@technictrang.ac.th> --- .gitea/workflows/build-image.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index a847633..79b6415 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -23,5 +23,9 @@ jobs: set -e docker image rm -f accounting-api:latest docker build . -t accounting-api:latest - - \ No newline at end of file + - name: Restart compose + run: | + curl -X POST http://10.9.0.0:3000/run \ + -H "Content-Type: application/json" \ + -H "X-SECRET: ${{ secrets.EXPRESS_SECRET }}" \ + -d '{"command": "cd $HOME/backend-development-kickstarter && ddd && ddud"}' \ No newline at end of file