diff --git a/.github/workflows/root-ci.yml b/.github/workflows/root-ci.yml index 6e917fed09d23..a3484aaa7730f 100644 --- a/.github/workflows/root-ci.yml +++ b/.github/workflows/root-ci.yml @@ -404,8 +404,8 @@ jobs: ${{ (github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && join( matrix.overrides, ', ' )) || '' }} container: - image: registry.cern.ch/root-ci/${{ matrix.image }}:buildready # ALSO UPDATE BELOW! - options: "--security-opt label=disable --rm ${{ matrix.property == 'gpu' && '--device nvidia.com/gpu=all' || '' }}" # ALSO UPDATE BELOW! + image: registry.cern.ch/root-ci/${{ matrix.image }}:buildready # KEEP IN SYNC WITH env key below + options: --security-opt label=disable --rm ${{ matrix.property == 'gpu' && '--device nvidia.com/gpu=all' || '' }} # KEEP IN SYNC WITH env key below volumes: - ${{ matrix.image }}_ccache_volume:/github/home/.cache/ccache env: @@ -417,6 +417,8 @@ jobs: OS_INTERFACE: 'public' OS_REGION_NAME: 'cern' PYTHONUNBUFFERED: true + CONTAINER_IMAGE: "registry.cern.ch/root-ci/${{ matrix.image }}:buildready" #KEEP IN SYNC WITH ABOVE + CONTAINER_OPTIONS: "--security-opt label=disable --rm ${{ matrix.property == 'gpu' && '--device nvidia.com/gpu=all' || '' }}" #KEEP IN SYNC WITH ABOVE steps: - name: ccache info @@ -438,7 +440,14 @@ jobs: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJSON(github) }} - run: echo "$GITHUB_CONTEXT" + JOB_CONTEXT: ${{ toJSON(job) }} + ENV_CONTEXT: ${{ toJSON(env) }} + run: | + echo "$GITHUB_CONTEXT" + echo "--------------------------" + echo "$JOB_CONTEXT" + echo "--------------------------" + echo "$ENV_CONTEXT" - name: Print debug info run: 'printf "%s@%s\\n" "$(whoami)" "$(hostname)"; @@ -482,7 +491,7 @@ jobs: run: ".github/workflows/root-ci-config/build_root.py --buildtype RelWithDebInfo --platform ${{ matrix.image }} - --dockeropts '${{ job.container.options }}' + --dockeropts \"${CONTAINER_OPTIONS}\" --incremental $INCREMENTAL --base_ref ${{ github.base_ref }} --sha ${{ github.sha }}