Skip to content

Commit a2484af

Browse files
committed
fix(ci): fix devchain cleanup
Signed-off-by: Minh Huy Tran <[email protected]>
1 parent 293dc4b commit a2484af

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,17 @@ jobs:
2323
restore-keys: |
2424
${{ runner.os }}-go-
2525
26-
- uses: dfinity/setup-dfx@main
26+
- name: Install Internet Computer SDK
27+
uses: dfinity/setup-dfx@main
2728
with:
2829
dfx-version: 0.25.1
2930

31+
- name: Build Stellar Devchain Image
32+
working-directory: payment-channel-xlm
33+
run: |
34+
chmod +x ./testdata/docker/build.sh
35+
./testdata/docker/build.sh
36+
3037
- name: Pull ganache-cli image
3138
run: docker pull ${{ env.ganache-image }}
3239

@@ -58,7 +65,7 @@ jobs:
5865
5966
sleep 50
6067
go run ./
61-
docker stop stellar soroban-preview
68+
docker stop stellar
6269
6370
- name: Payment Channel Cross-Contract
6471
working-directory: payment-channel-cc
@@ -105,7 +112,6 @@ jobs:
105112
./stopdfx.sh || true # stop any running dfx
106113
./startdeploy.sh
107114
108-
sleep 5
109115
go run ./
110116
111117
./stopdfx.sh || true

payment-channel-xlm/quickstart.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,13 @@ docker run -d \
5959
--network soroban-network \
6060
soroban-preview:10
6161

62+
echo "Cleaning up any existing stellar container"
63+
docker rm -f stellar 2>/dev/null || true
64+
6265
# Start the stellar quickstart container
6366
if [[ "$DETACHED" == "1" ]]; then
6467
echo "Running stellar quickstart container in detached mode"
65-
docker run -d \
68+
docker run --rm -d \
6669
--name stellar \
6770
--pull always \
6871
--network soroban-network \

0 commit comments

Comments
 (0)