Skip to content

Commit

Permalink
Add an option to run release tests for Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
veaceslavdoina committed Dec 3, 2024
1 parent 75df584 commit 60a0174
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/docker-dist-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,38 @@ on:
- '!docker/codex.Dockerfile'
- '!docker/docker-entrypoint.sh'
workflow_dispatch:
inputs:
run_release_tests:
description: Run Release tests
required: false
type: boolean
default: false


env:
run_release_tests: false


jobs:
compute-inputs:
name: Compute inputs
runs-on: ubuntu-latest
outputs:
run_release_tests: ${{ steps.compute.outputs.run_release_tests }}
steps:
- name: Compute inputs
id: compute
run: |
[[ -n "${{ inputs.run_release_tests }}" ]] && echo "run_release_tests=${{ inputs.run_release_tests }}" >>"$GITHUB_OUTPUT" || echo "run_release_tests=${{ env.run_release_tests }}" >>"$GITHUB_OUTPUT"
build-and-push:
name: Build and Push
needs: compute-inputs
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
continuous_tests_list: PeersTest HoldMyBeerTest
continuous_tests_duration: 12h
run_release_tests: ${{ needs.compute-inputs.outputs.run_release_tests }}
secrets: inherit

0 comments on commit 60a0174

Please sign in to comment.