From 9a90a7ffdcd95b59b0094a471a50679f4f5ca292 Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Fri, 28 Mar 2025 20:42:18 +0100 Subject: [PATCH] optional release builder --- .github/workflows/xahau-sh-build-in-docker.yml | 9 +++++++-- release-builder.sh | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/xahau-sh-build-in-docker.yml b/.github/workflows/xahau-sh-build-in-docker.yml index be6763302..f6916dde5 100644 --- a/.github/workflows/xahau-sh-build-in-docker.yml +++ b/.github/workflows/xahau-sh-build-in-docker.yml @@ -3,8 +3,12 @@ name: Release - SH Runner on: push: branches: ["dev", "candidate", "release"] - pull_request: - branches: ["dev", "candidate", "release"] + workflow_dispatch: + inputs: + reason: + description: 'Release Build' + required: false + default: 'Manual PR testing' concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -15,6 +19,7 @@ env: jobs: checkout: + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' runs-on: [self-hosted, vanity] outputs: checkout_path: ${{ steps.vars.outputs.checkout_path }} diff --git a/release-builder.sh b/release-builder.sh index 466920a1d..be816ffa4 100755 --- a/release-builder.sh +++ b/release-builder.sh @@ -72,7 +72,8 @@ fi STATIC_CONTAINER=$(docker ps -a | grep $CONTAINER_NAME |wc -l) -if [[ "$STATIC_CONTAINER" -gt "0" && "$GITHUB_REPOSITORY" != "" ]]; then +# if [[ "$STATIC_CONTAINER" -gt "0" && "$GITHUB_REPOSITORY" != "" ]]; then +if false; then echo "Static container, execute in static container to have max. cache" docker start $CONTAINER_NAME docker exec -i $CONTAINER_NAME bash -x /io/build-core.sh "$GITHUB_REPOSITORY" "$GITHUB_SHA" "$BUILD_CORES" "$GITHUB_RUN_NUMBER"