From f8d3e0d3beb15bfcff232c91c2b97c6473c22182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Thu, 22 Jan 2026 16:16:48 +0100 Subject: [PATCH] ci: build images for dist-tests (#1384) --- .github/workflows/docker-dist-tests.yml | 39 +++++++++++++++++++++++++ .github/workflows/docker-reusable.yml | 19 ------------ 2 files changed, 39 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/docker-dist-tests.yml diff --git a/.github/workflows/docker-dist-tests.yml b/.github/workflows/docker-dist-tests.yml new file mode 100644 index 00000000..43bdc6bb --- /dev/null +++ b/.github/workflows/docker-dist-tests.yml @@ -0,0 +1,39 @@ +name: Docker - Dist-Tests + + +on: + push: + branches: + - master + tags: + - 'v*.*.*' + paths-ignore: + - '**/*.md' + - '.gitignore' + - '.github/**' + - '!.github/workflows/docker-dist-tests.yml' + - '!.github/workflows/docker-reusable.yml' + - 'docker/**' + - '!docker/codex.Dockerfile' + - '!docker/docker-entrypoint.sh' + workflow_dispatch: + inputs: + run_release_tests: + description: Run Release tests + required: false + type: boolean + default: false + + +jobs: + build-and-push: + name: Build and Push + uses: ./.github/workflows/docker-reusable.yml + 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 + tag_stable: ${{ startsWith(github.ref, 'refs/tags/') }} + run_release_tests: ${{ inputs.run_release_tests }} + secrets: inherit diff --git a/.github/workflows/docker-reusable.yml b/.github/workflows/docker-reusable.yml index b8bfeffa..41eccda5 100644 --- a/.github/workflows/docker-reusable.yml +++ b/.github/workflows/docker-reusable.yml @@ -64,10 +64,6 @@ on: required: false type: string default: false - contract_image: - description: Specifies compatible smart contract image - required: false - type: string outputs: codex_image: description: Logos Storage Docker image tag @@ -85,7 +81,6 @@ env: TAG_STABLE: ${{ inputs.tag_stable }} TAG_SHA: ${{ inputs.tag_sha }} TAG_SUFFIX: ${{ inputs.tag_suffix }} - CONTRACT_IMAGE: ${{ inputs.contract_image }} # Tests TESTS_SOURCE: logos-storage/logos-storage-nim-cs-dist-tests TESTS_BRANCH: master @@ -135,19 +130,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Docker - Variables - run: | - # Create contract label for compatible contract image if specified - if [[ -n "${{ env.CONTRACT_IMAGE }}" ]]; then - echo "CONTRACT_LABEL=storage.codex.nim-codex.blockchain-image=${{ env.CONTRACT_IMAGE }}" >> $GITHUB_ENV - fi - - name: Docker - Meta id: meta uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_REPO }} - labels: ${{ env.CONTRACT_LABEL }} - name: Docker - Set up Buildx uses: docker/setup-buildx-action@v3 @@ -219,11 +206,6 @@ jobs: else echo "TAG_RAW=false" >> $GITHUB_ENV fi - - # Create contract label for compatible contract image if specified - if [[ -n "${{ env.CONTRACT_IMAGE }}" ]]; then - echo "CONTRACT_LABEL=storage.codex.nim-codex.blockchain-image=${{ env.CONTRACT_IMAGE }}" >> $GITHUB_ENV - fi - name: Docker - Download digests uses: actions/download-artifact@v4 @@ -240,7 +222,6 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_REPO }} - labels: ${{ env.CONTRACT_LABEL }} flavor: | latest=${{ env.TAG_LATEST }} suffix=${{ env.TAG_SUFFIX }},onlatest=true