From 22f5150d1dbea8e49ae4c71b9daec60f8fbe536f Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Fri, 18 Apr 2025 17:21:24 +0300 Subject: [PATCH] ci: add compatible contracts image for nim-codex dist-tests docker image (#1204) --- .github/workflows/docker-dist-tests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/docker-dist-tests.yml b/.github/workflows/docker-dist-tests.yml index 1cbc528a..c6c133f2 100644 --- a/.github/workflows/docker-dist-tests.yml +++ b/.github/workflows/docker-dist-tests.yml @@ -26,13 +26,29 @@ on: jobs: + get-contracts-hash: + runs-on: ubuntu-latest + outputs: + hash: ${{ steps.get-hash.outputs.hash }} + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: Get submodule short hash + id: get-hash + run: | + hash=$(git rev-parse --short HEAD:vendor/codex-contracts-eth) + echo "hash=$hash" >> $GITHUB_OUTPUT build-and-push: name: Build and Push uses: ./.github/workflows/docker-reusable.yml + needs: get-contracts-hash with: nimflags: '-d:disableMarchNative -d:codex_enable_api_debug_peers=true -d:codex_enable_proof_failures=true -d:codex_enable_log_counter=true -d:verify_circuit=true' nat_ip_auto: true tag_latest: ${{ github.ref_name == github.event.repository.default_branch || startsWith(github.ref, 'refs/tags/') }} tag_suffix: dist-tests + contract_image: "codexstorage/codex-contracts-eth:sha-${{ needs.get-contracts-hash.outputs.hash }}-dist-tests" run_release_tests: ${{ inputs.run_release_tests }} secrets: inherit