From 63e1db60122a825473f2c3796c5927445aecf312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Yaz=C4=B1c=C4=B1?= <75089142+yaziciahmet@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:01:28 +0700 Subject: [PATCH] Rename SHORT_PREFIX env (#38) * Rename SHORT_PREFIX env * Rename docker tag * Update citrea docker image * Add PARALLEL_PROOF_LIMIT env * Lint * Rollback a bit :D --- .github/workflows/code_checks.yml | 4 ++-- src/config/docker.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml index 80022b5..73d6aea 100644 --- a/.github/workflows/code_checks.yml +++ b/.github/workflows/code_checks.yml @@ -52,7 +52,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - short_prefix: [0, 1] + ci_test_mode: [0, 1] steps: - uses: actions/checkout@v4 @@ -64,4 +64,4 @@ jobs: toolchain: stable - name: Run Cargo test - run: SHORT_PREFIX=${{ matrix.short_prefix }} cargo test + run: CI_TEST_MODE=${{ matrix.ci_test_mode }} cargo test diff --git a/src/config/docker.rs b/src/config/docker.rs index b5459e1..11f52de 100644 --- a/src/config/docker.rs +++ b/src/config/docker.rs @@ -12,7 +12,7 @@ use crate::{ const DEFAULT_BITCOIN_DOCKER_IMAGE: &str = "bitcoin/bitcoin:28.0"; const DEFAULT_CITREA_DOCKER_IMAGE: &str = - "chainwayxyz/citrea-test:57f9b46a366413f2e5b04a2bca07abcc21ad0dde"; + "chainwayxyz/citrea-test:d3a6f5f25175cbfa925ff8fad5069828bd30c06c"; #[derive(Debug)] pub struct VolumeConfig { @@ -76,8 +76,8 @@ where ports: vec![config.rollup.rpc.bind_port], image: config.docker_image.clone().unwrap_or_else(|| { let base_img = DEFAULT_CITREA_DOCKER_IMAGE; - match std::env::var("SHORT_PREFIX") { - Ok(v) if v == "1" || v == "true" => format!("{base_img}-short-prefix"), + match std::env::var("CI_TEST_MODE") { + Ok(v) if v == "1" || v == "true" => format!("{base_img}-ci"), _ => base_img.to_string(), } }),