Skip to content

Commit

Permalink
ci(deploy): improve network start/stop process in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
prnk28 committed Dec 11, 2024
1 parent 9ba387f commit 3176cc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-net.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ jobs:
fetch-depth: 0
branch: develop

- name: Stop Devnet
- name: Stop Existing Network
continue-on-error: true
run: |
make stop-uds
make clean
- name: Start Devnet
- name: Start Updated Network
run: |
make start-uds
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SIMAPP = ./app

PC_PORT_NUM=42069
PC_LOG_FILE=./sonr.log
PC_SOCKET_PATH=/tmp/sonr-net.sock

# for dockerized protobuf tools
DOCKER := $(shell which docker)
Expand Down Expand Up @@ -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

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
bin/process-compose down --port $(PC_PORT_NUM)

stop-uds: init-env
bin/process-compose down --use-uds

restart: stop clean start
bin/process-compose down --use-uds --unix-socket $(PC_SOCKET_PATH)

status: init-env
bin/process-compose project state --port $(PC_PORT_NUM)
Expand Down

0 comments on commit 3176cc6

Please sign in to comment.