git.delta.rocks / unique-network / refs/commits / d5ca153d8301

difftreelog

fix Added additional Jinja2 template.

Alexander Aksenov2022-08-02parent: #2f394b0.patch.diff
in: master

3 files changed

added.docker/docker-compose.tmp-master.j2diffbeforeafterboth
--- /dev/null
+++ b/.docker/docker-compose.tmp-master.j2
@@ -0,0 +1,10 @@
+version: "3.5"
+
+services:
+  blockchain_nodes:
+    build:
+      args:
+        - "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
+        - "BRANCH={{ BRANCH }}"
+        - "REPO_URL={{ REPO_URL }}"
+        - "FEATURE={{ FEATURE }}"
modified.docker/docker-compose.tmp.j2diffbeforeafterboth
--- a/.docker/docker-compose.tmp.j2
+++ b/.docker/docker-compose.tmp.j2
@@ -8,3 +8,5 @@
         - "BRANCH={{ BRANCH }}"
         - "REPO_URL={{ REPO_URL }}"
         - "FEATURE={{ FEATURE }}"
+        
+     command: cargo run --release $FEATURE -- --dev -linfo --unsafe-ws-external --rpc-cors=all --unsafe-rpc-external
modified.github/workflows/build-test-master.ymldiffbeforeafterboth
72 - name: Generate ENV related extend file for docker-compose72 - name: Generate ENV related extend file for docker-compose
73 uses: cuchi/jinja2-action@v1.2.073 uses: cuchi/jinja2-action@v1.2.0
74 with:74 with:
75 template: .docker/docker-compose.tmp.j275 template: .docker/docker-compose.tmp-master.j2
76 output_file: .docker/docker-compose.${{ matrix.network }}.yml76 output_file: .docker/docker-compose.${{ matrix.network }}.yml
77 variables: |77 variables: |
78 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git78 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git
84 run: cat .docker/docker-compose.${{ matrix.network }}.yml84 run: cat .docker/docker-compose.${{ matrix.network }}.yml
8585
86 - name: Build the stack86 - name: Build the stack
87 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build87 run: docker-compose -f ".docker/docker-compose-tests-parachain.yml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build
8888
89# - name: "Build the Docker image with Feature: ${{ env.features }}"89# - name: "Build the Docker image with Feature: ${{ env.features }}"
90# run: docker build -t build-${{ github.head_ref }} --file .docker/Dockerfile-chain-dev --build-arg REPO_URL=${{ github.server_url }}/${{ github.repository }}.git --build-arg RUST_TOOLCHAIN=${{ env.actual_toolchain }} --build-arg FEATURE="${{ env.features }}" --build-arg BRANCH=${{ github.head_ref }} --no-cache .90# run: docker build -t build-${{ github.head_ref }} --file .docker/Dockerfile-chain-dev --build-arg REPO_URL=${{ github.server_url }}/${{ github.repository }}.git --build-arg RUST_TOOLCHAIN=${{ env.actual_toolchain }} --build-arg FEATURE="${{ env.features }}" --build-arg BRANCH=${{ github.head_ref }} --no-cache .