workflow: call watcherd when docker image is updated
Some checks failed
Build Docker Image / Build Docker Image (push) Has been cancelled

Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
2025-11-23 21:34:53 +07:00
parent 861f3f033b
commit bcaf213d24

View File

@@ -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
# 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"}'