workflow: call watcherd when docker image is updated
Some checks failed
Build Docker Image / Build Docker Image (push) Has been cancelled
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:
@@ -12,7 +12,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# change mirror to kku.ac.th for faster package downloading
|
# 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 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
|
- name: Install project dependencies
|
||||||
run: |
|
run: |
|
||||||
cd accounting-ng-nuttakit
|
cd accounting-ng-nuttakit
|
||||||
@@ -31,5 +31,10 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
docker image rm -f accounting-frontend:latest
|
docker image rm -f accounting-frontend:latest
|
||||||
docker build . -t 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"}'
|
||||||
Reference in New Issue
Block a user