From bcaf213d24c4b9025f14f7b193072548ec07323c Mon Sep 17 00:00:00 2001 From: supphakitd <67319010028@technictrang.ac.th> Date: Sun, 23 Nov 2025 21:34:53 +0700 Subject: [PATCH] workflow: call watcherd when docker image is updated Signed-off-by: supphakitd <67319010028@technictrang.ac.th> --- .gitea/workflows/build-image.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index e5d99cd..14f55f2 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -12,7 +12,7 @@ jobs: run: | # change mirror to kku.ac.th for faster package downloading sudo sed -i 's@http://archive.ubuntu.com@http://mirror.kku.ac.th@g' /etc/apt/sources.list.d/ubuntu.sources - sudo apt update && sudo apt install nodejs npm -y + sudo apt update && sudo apt install nodejs npm curl -y - name: Install project dependencies run: | cd accounting-ng-nuttakit @@ -31,5 +31,10 @@ jobs: set -e docker image rm -f accounting-frontend:latest docker build . -t accounting-frontend:latest - - \ No newline at end of file + # restart compose + - 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/frontend-development-kickstarter && ddd && ddud"}' \ No newline at end of file