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:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Test pinging host.docker.internal
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
curl -v -X POST http://host.docker.internal:3000/run \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "X-SECRET: ${{ secrets.EXPRESS_SECRET }}" \
|
||||
-d '{"command": "echo hello world!"}'
|
||||
# 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 curl -y
|
||||
- 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