Workflow: introducing execpipe/hostpipe
All checks were successful
Build Docker Image / Build Docker Image (push) Successful in 4m4s
All checks were successful
Build Docker Image / Build Docker Image (push) Successful in 4m4s
Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
@@ -8,10 +8,22 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Test pinging host.docker.internal
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
curl -v -X POST http://host.docker.internal:3000/run \
|
# change mirror to kku.ac.th for faster package downloading
|
||||||
-H "Content-Type: application/json" \
|
sudo sed -i 's@http://archive.ubuntu.com@http://mirror.kku.ac.th@g' /etc/apt/sources.list.d/ubuntu.sources
|
||||||
-H "X-SECRET: ${{ secrets.EXPRESS_SECRET }}" \
|
sudo apt update && sudo apt install nodejs npm curl -y
|
||||||
-d '{"command": "echo hello world!"}'
|
- name: Build docker image
|
||||||
|
run: |
|
||||||
|
mv Dockerfile ../
|
||||||
|
mv entrypoint ../
|
||||||
|
cd ../
|
||||||
|
set +e
|
||||||
|
docker rm $(docker stop $(docker ps -a -q --filter ancestor=accounting-api:latest --format="{{.ID}}"))
|
||||||
|
set -e
|
||||||
|
docker image rm -f accounting-api:latest
|
||||||
|
docker build . -t accounting-api:latest
|
||||||
|
- name: Restart compose
|
||||||
|
run: |
|
||||||
|
echo '(cd backend-development-kickstarter && ddd && ddud)' > /hostpipe
|
||||||
|
|
||||||
Reference in New Issue
Block a user