ci(deploy): improve network start/stop process in CI

This commit is contained in:
Prad Nukala 2024-12-11 16:29:47 -05:00
parent 9ba387f2e4
commit 3176cc661a
2 changed files with 6 additions and 6 deletions

View File

@ -23,11 +23,12 @@ jobs:
fetch-depth: 0 fetch-depth: 0
branch: develop branch: develop
- name: Stop Devnet - name: Stop Existing Network
continue-on-error: true continue-on-error: true
run: | run: |
make stop-uds make stop-uds
make clean
- name: Start Devnet - name: Start Updated Network
run: | run: |
make start-uds make start-uds

View File

@ -10,6 +10,7 @@ SIMAPP = ./app
PC_PORT_NUM=42069 PC_PORT_NUM=42069
PC_LOG_FILE=./sonr.log PC_LOG_FILE=./sonr.log
PC_SOCKET_PATH=/tmp/sonr-net.sock
# for dockerized protobuf tools # for dockerized protobuf tools
DOCKER := $(shell which docker) DOCKER := $(shell which docker)
@ -348,15 +349,13 @@ start-tui: build-hway init-env
bin/process-compose up --port $(PC_PORT_NUM) --log-file $(PC_LOG_FILE) -f deploy/process-compose.yaml bin/process-compose up --port $(PC_PORT_NUM) --log-file $(PC_LOG_FILE) -f deploy/process-compose.yaml
start-uds: build-hway init-env start-uds: build-hway init-env
bin/process-compose up --use-uds --log-file $(PC_LOG_FILE) --detached -f deploy/process-compose.yaml bin/process-compose up --use-uds --unix-socket $(PC_SOCKET_PATH) --log-file $(PC_LOG_FILE) --detached -f deploy/process-compose.yaml
stop: init-env stop: init-env
bin/process-compose down --port $(PC_PORT_NUM) bin/process-compose down --port $(PC_PORT_NUM)
stop-uds: init-env stop-uds: init-env
bin/process-compose down --use-uds bin/process-compose down --use-uds --unix-socket $(PC_SOCKET_PATH)
restart: stop clean start
status: init-env status: init-env
bin/process-compose project state --port $(PC_PORT_NUM) bin/process-compose project state --port $(PC_PORT_NUM)