diff --git a/.github/workflows/build/action.yaml b/.github/workflows/build/action.yaml index ba76b2cc9..96dfc178c 100644 --- a/.github/workflows/build/action.yaml +++ b/.github/workflows/build/action.yaml @@ -35,8 +35,12 @@ runs: trap 'rm -rf -- "$MYTMPDIR"' EXIT logfile="$MYTMPDIR/bazel-out.log" bazel query "${{ inputs.spec }} ${{ inputs.except }}" > "$MYTMPDIR/targets" - r=0 - bazel build --target_pattern_file="$MYTMPDIR/targets" --config=ci --test_env=HOME=/home/runner --explain="$MYTMPDIR/explanations" --verbose_explanations --show_result=100000 2>&1 | tee "$logfile" >&2 || r=1 + + set +e + bazel build --target_pattern_file="$MYTMPDIR/targets" --config=ci --test_env=HOME=/home/runner --explain="$MYTMPDIR/explanations" --verbose_explanations --show_result=100000 2>&1 | tee "$logfile" >&2 + r=${PIPESTATUS[0]} + set -e + # echo === Explanations === >&2 # cat "$MYTMPDIR/explanations" >&2 # echo == /Explanations === >&2 diff --git a/.github/workflows/dre-release.yaml b/.github/workflows/dre-release.yaml index 1189c6560..b23c21cbb 100644 --- a/.github/workflows/dre-release.yaml +++ b/.github/workflows/dre-release.yaml @@ -10,8 +10,7 @@ concurrency: jobs: test: - runs-on: - labels: dre-runner-custom + runs-on: namespace-profile-default container: ghcr.io/dfinity/dre/actions-runner:6413f2909a49329ecbf5371ee7ddf07a9799b625 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index bd549a654..faf9b4b3c 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -28,8 +28,7 @@ concurrency: jobs: bazel: name: Build and test pipeline - runs-on: - labels: dre-runner-custom + runs-on: namespace-profile-default # This image is based on ubuntu:20.04 container: ghcr.io/dfinity/dre/actions-runner:6413f2909a49329ecbf5371ee7ddf07a9799b625 permissions: diff --git a/.github/workflows/manage-runner-pre/action.yaml b/.github/workflows/manage-runner-pre/action.yaml index d0c07525c..ce75c85bc 100644 --- a/.github/workflows/manage-runner-pre/action.yaml +++ b/.github/workflows/manage-runner-pre/action.yaml @@ -32,6 +32,11 @@ runs: ######################################## # Setup ######################################## + - name: "🐳 Fix docker socket permissions" + if: ${{ !startsWith(runner.name, 'dre-runner-custom') }} + shell: bash + run: sudo chmod 666 /var/run/docker.sock + - name: "🔧 Free Up Disk Space" uses: jlumbroso/free-disk-space@v1.3.1 if: ${{ !startsWith(runner.name, 'dre-runner-custom') }} diff --git a/.github/workflows/release-controller.yaml b/.github/workflows/release-controller.yaml index be3b8915a..ef73648b3 100644 --- a/.github/workflows/release-controller.yaml +++ b/.github/workflows/release-controller.yaml @@ -34,7 +34,7 @@ jobs: bazel-release-controller: name: Release controller pipeline runs-on: - labels: dre-runner-custom + labels: namespace-profile-default # This image is based on ubuntu:20.04 container: ghcr.io/dfinity/dre/actions-runner:6413f2909a49329ecbf5371ee7ddf07a9799b625 permissions: diff --git a/.github/workflows/trusted-neurons-alerts.yaml b/.github/workflows/trusted-neurons-alerts.yaml index 1fc097c62..7028e0441 100644 --- a/.github/workflows/trusted-neurons-alerts.yaml +++ b/.github/workflows/trusted-neurons-alerts.yaml @@ -29,8 +29,7 @@ concurrency: jobs: bazel-trusted-neurons-alerts: name: Trusted neurons alerts pipeline - runs-on: - labels: dre-runner-custom + runs-on: namespace-profile-default # This image is based on ubuntu:20.04 container: ghcr.io/dfinity/dre/actions-runner:6413f2909a49329ecbf5371ee7ddf07a9799b625 permissions: