Workflow: added execpipe/hostpipe from micro-service-api
All checks were successful
Build Docker Image / Build Docker Image (push) Successful in 7m22s
Build Docker Image / Restart Docker Compose (push) Successful in 1s

Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
2025-11-24 15:34:03 +07:00
parent 4278a54726
commit 291485f7b7
2 changed files with 12 additions and 6 deletions

View File

@@ -31,10 +31,10 @@ jobs:
set -e
docker image rm -f accounting-frontend:latest
docker build . -t accounting-frontend:latest
# restart compose
- name: Restart compose
Restart Docker Compose:
runs-on: host
steps:
- name: Restart compose project
run: |
curl -X POST http://host.docker.internal:3000/run \
-H "Content-Type: application/json" \
-H "X-SECRET: ${{ secrets.EXPRESS_SECRET }}" \
-d '{"command": "cd $HOME/frontend-development-kickstarter && ddd && ddud"}'
echo '(cd frontend-development-kickstarter && ddd && ddd && ddud)' > /hostpipe