optional release builder

This commit is contained in:
Denis Angell
2025-03-28 20:42:18 +01:00
parent ddbbe91e5a
commit 9a90a7ffdc
2 changed files with 9 additions and 3 deletions

View File

@@ -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 }}

View File

@@ -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"