difftreelog
fix build and start command splited to get exit code available
in: master
2 files changed
.docker/Dockerfile-try-runtimediffbeforeafterboth35ARG PROFILE=release35ARG PROFILE=release36ARG FEATURE=36ARG FEATURE=37ARG FORK_FROM=37ARG FORK_FROM=38ENV FEATURE $FEATURE39ENV FORK_FROM $FORK_FROM384039COPY . /unique_parachain41COPY . /unique_parachain40WORKDIR /unique_parachain42WORKDIR /unique_parachain4143424443RUN echo "Requested features: $FEATURE\n" && \45RUN echo "Requested features: $FEATURE\n" && \44 echo "Fork from: $FORK_FROM\n" && \46 echo "Fork from: $FORK_FROM\n" && \45 cargo run --features=$FEATURE --release -- try-runtime on-runtime-upgrade live --uri $FORK_FROM47 cargo build --features=$FEATURE --release48 4950CMD cargo run --features=$FEATURE --release -- try-runtime on-runtime-upgrade live --uri $FORK_FROM4651.github/workflows/try-runtime.ymldiffbeforeafterboth--- a/.github/workflows/try-runtime.yml
+++ b/.github/workflows/try-runtime.yml
@@ -93,6 +93,16 @@
- name: Build the stack
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
+ - name: Collect Docker Logs
+ if: success() || failure()
+ uses: jwalton/gh-docker-logs@v2.2.0
+ with:
+ dest: './try-runtime-logs.${{ matrix.features }}'
+ images: 'try-runtime'
+
+ - name: Show docker logs
+ run: cat './try-runtime-logs.${{ matrix.features }}/try-runtime.log'
+
- name: Stop running containers
if: always() # run this step always
run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down