git.delta.rocks / unique-network / refs/commits / 99b1e62d01d4

difftreelog

fix build and start command splited to get exit code available

Alexander Aksenov2022-08-18parent: #156db22.patch.diff
in: master

2 files changed

modified.docker/Dockerfile-try-runtimediffbeforeafterboth
--- a/.docker/Dockerfile-try-runtime
+++ b/.docker/Dockerfile-try-runtime
@@ -35,6 +35,8 @@
 ARG PROFILE=release
 ARG FEATURE=
 ARG FORK_FROM=
+ENV FEATURE $FEATURE
+ENV FORK_FROM $FORK_FROM
 
 COPY . /unique_parachain
 WORKDIR /unique_parachain
@@ -42,4 +44,7 @@
 
 RUN echo "Requested features: $FEATURE\n" && \
     echo "Fork from: $FORK_FROM\n" && \
-    cargo run --features=$FEATURE --release -- try-runtime on-runtime-upgrade live --uri $FORK_FROM
+    cargo build --features=$FEATURE --release
+    
+
+CMD cargo run --features=$FEATURE --release -- try-runtime on-runtime-upgrade live --uri $FORK_FROM
modified.github/workflows/try-runtime.ymldiffbeforeafterboth
93 - name: Build the stack93 - name: Build the stack
94 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" up -d --build --force-recreate --timeout 300 --remove-orphans94 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" up -d --build --force-recreate --timeout 300 --remove-orphans
95
96 - name: Collect Docker Logs
97 if: success() || failure()
98 uses: jwalton/gh-docker-logs@v2.2.0
99 with:
100 dest: './try-runtime-logs.${{ matrix.features }}'
101 images: 'try-runtime'
102
103 - name: Show docker logs
104 run: cat './try-runtime-logs.${{ matrix.features }}/try-runtime.log'
95105
96 - name: Stop running containers106 - name: Stop running containers
97 if: always() # run this step always107 if: always() # run this step always